M marrett Registered User. Local time Today, 05:54 Joined Sep 8, 2000 Messages 43 May 17, 2001 #1 Hi I Need to get the following statement to work. Set RST = db.OpenRecordset("Select * From [users]where [user]=" & Forms!usersignin!User) User in users is text. Please help.
Hi I Need to get the following statement to work. Set RST = db.OpenRecordset("Select * From [users]where [user]=" & Forms!usersignin!User) User in users is text. Please help.
E Everton Registered User. Local time Today, 05:54 Joined Aug 10, 2000 Messages 34 May 17, 2001 #2 For string criteria you need to put the data in single quotes. Try: Set RST = db.OpenRecordset("Select * From [users]where [user]= '" & Forms!usersignin!User & "'") Hope this works, Paul
For string criteria you need to put the data in single quotes. Try: Set RST = db.OpenRecordset("Select * From [users]where [user]= '" & Forms!usersignin!User & "'") Hope this works, Paul
M marrett Registered User. Local time Today, 05:54 Joined Sep 8, 2000 Messages 43 May 17, 2001 #3 Thanks Paul, I Still cannot get it to work. I used your s and I get the error> Method 'Item' of Object 'Forms' Failed Set RST = db.OpenRecordset("Select * From [users]where [user]= '" & Forms!usersignin!User & "'") Please help. Thnaks, Maria
Thanks Paul, I Still cannot get it to work. I used your s and I get the error> Method 'Item' of Object 'Forms' Failed Set RST = db.OpenRecordset("Select * From [users]where [user]= '" & Forms!usersignin!User & "'") Please help. Thnaks, Maria
H HiArt Registered User. Local time Today, 05:54 Joined Mar 17, 2001 Messages 41 May 17, 2001 #4 Is this as simple as Set RST = db.OpenRecordset("Select * From [users]where [user]= '" & Forms!usersignin!User.Value & "'") ??? or caption ??? Art
Is this as simple as Set RST = db.OpenRecordset("Select * From [users]where [user]= '" & Forms!usersignin!User.Value & "'") ??? or caption ??? Art
J Jon Holmes Banned Local time Today, 05:54 Joined May 16, 2001 Messages 23 May 19, 2001 #5 In all the examples no-one has placed a space before "WHERE" to separate it from the recordsource [users].
In all the examples no-one has placed a space before "WHERE" to separate it from the recordsource [users].