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

linking to a subform

Status
Not open for further replies.

gojohnnygogogogo

Programmer
May 22, 2002
161
GB
hello All,
I use this code through most my access97 databases, but for some reason it doesn't work on one of my databases.

run-time error '3077'
Syntax error (missing operator) in expression.

the code is :

Private Sub List0_AfterUpdate()

Me.Recordsetclone.findfirst "[Companyname] = " & Me![list0]

Me.bookmark = me.recordsetclone.bookmark

any reason why this doesn't work ?


thank you.
 
Hi

Presumably becuase CompanyNAme is a string, try

Me.Recordsetclone.findfirst "[Companyname] = '" & Me![list0] & "'"

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top