I tried your suggestion and got this:
Variable is undefined: 'adLockOptimistic'
I haven't changed my include file either, but here is what the "ConnectDatabase1.inc" file contains:
<%
strDatabaseLocation = "D:\Websites\www.fsbo-indy
Set dcnDB = Server.CreateObject("ADODB
dcnDB.ConnectionString = _
"Provider=Microsoft.Jet.OL
& "Persist Security Info=False;Data Source=" _
& strDatabaseLocation
dcnDB.Open
%>
Main Topics
Browse All Topics





by: shanesuebsahakarnPosted on 2004-09-07 at 15:29:14ID: 12001566
Your include file probably no longer includes a definition of adOpenKeyset - that would be the place to check first. It's a constant value.
For reference, it is equal to 1, so you might try this:
rsQuery.Open "SELECT * FROM ads", dcnDB, 1, adLockOptimistic