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!

SQL & VBA

Status
Not open for further replies.

dodgyone

Technical User
Jan 26, 2001
431
GB
Could somebody please tell me what is wrong with the following code... I'm using it to change the recordsource on a form when it opens using VBA...

Me.RecordSource = "SELECT Table1.ID, Table1.Name FROM Table1 WHERE (((Table1.Name) Like "Marcus"));"

Many Thanks,
Marcus
 
Also, don't you need the "*" to use the LIKE clause? Terry M. Hoey
 
yep.. did both minutes after posting the question... it amazes me how many times you panic, post the question and then just solve it minutes later :eek:)

Cheers for being so speedy though...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top