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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change DAO to ADO

Status
Not open for further replies.

desperatemeasures

Technical User
Sep 10, 2002
50
US
I am trying to change my DAO to ADO, Is there any new reference I need to add? This is my code and I am getting this error message: Method or data member not found

Dim UserConn As ADODB.Connection
Dim UserRS As New ADODB.Recordset

Set UserConn = CurrentProject.Connection
Set UserRS = New ADODB.Recordset
UserRS.CursorType = adOpenDynamic
UserRS.LockType = adLockOptimistic
UserRS.Open "users", UserConn

With UserRS
.FindFirst "Name = '" & Me!txtUser & "'"

Any help would be appreciated, thanks

 
Have you got Microsoft Activex Data Object 2.1

Neemi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top