Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connection

Status
Not open for further replies.

cabobound

Programmer
Jul 11, 2007
80
0
0
US
I am trying to get a record count without having to loop through with a counter. I believe the problem is with the connection type. I am not having any luck looking on the internet.

Here is my current connection.....

Set bConn = Server.CreateObject("ADODB.Connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("MyDatabase.mdb")
bConn.Open DSNtemp

Does anyone have a suggestion?

Thanks in advance....
K
 
Add this line after bConn.
[tt]
Set bConn = Server.CreateObject("ADODB.Connection")
[blue]bConn.cursorLocation=3[/blue] 'adUseClient=3
'etc etc...
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top