View Single Post
Old 10-14-2004, 04:06 PM   #1 (permalink)
CBlend
Junkie
 
CBlend's Avatar
 
Location: Classified
[ASP3]Cannot connect to database 2nd time

I have a page that connects to an Access database successfully, displaying all the rows on the page. However, if I hit refresh, I get an error on the line number where I'm opening the connection to the database. If I wait a while, it works.

I have another page that displays a subset of data from the same table and it also shows an error for the line number where the connection is opened.

If I am on the page that shows the whole table, and click a link to go to the subset table, I will get the error. The same is true the other way around. If I wait a while between opening pages that use the table, the page connects as it should.

I close both my connection and recordset and set both of these to Nothing at the end of the document.

What causes me to not be able to connect a second time without waiting?
I am new to ASP, so I hope this doesn't sound stupid. It is hopefully some easy thing I am missing, and hopefully my description may be enough so someone here can tell me what I should do or what topic to read up on!

Thanks, all!
CBlend is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73