Try combining some of those querys into one by joining the tables and
a) If you only want one record use TOP 1 (select TOP 1 id,first,last
from table where ID = 5)
b) Make sure your tables are indexed, if you use say userID =1 and
CompanyID = 0 in your sql query then be sure that there is an index
for Record & Company together so it won't have to scan the rows so
much.
c) Use 0,1:
sSQL = Select TOP 1 ID,First,Last from Table where CompanyID =0 and
userID = 1
rs.open sSQL, Conn, 0, 1
Thanks
George Scott
http://www.officezilla.com/whatisit.asp
On Jun 15, 12:22 pm, Akerlund <Akerl...@discussions.microsoft.com>
wrote:
> User clicks a link that displays a customer card and financial stats (has a
> lot of database calls). Every 5 times the user clicks the same page/link it
> takes about 30 seconds (normal response time is <1 second) to display. Then
> you can click 4 times with a normal response time and the 5th the repsone
> time it is 30 seconds again. The page has exactly the same parameters every
> time but there seem to occur some "locking" that stops the action every 5
> calls but I can not understand what this is. For other pages this could be