Hi Guys
I got this bit of code I've been working on and it's probably a bit silly but I need it to recognise apostrophes.
The form opens fine if say the company is called Daves but not Daves's
I got this bit of code I've been working on and it's probably a bit silly but I need it to recognise apostrophes.
There is a missing operator somewhere maybe someone could shed some light on it.DoCmd.OpenForm "Frm2ndContact", acNormal, "", "[CompanyName]=" & " '" & (txtCompanyName & "'"), , acNormal
The form opens fine if say the company is called Daves but not Daves's