sql string

  • Thread starter Thread starter doodle
  • Start date Start date
D

doodle

Access 97, win xp

This code is located in my main switchboard. I need to change
[Customer] to a variable named y, but I can't get the quotes right.

Here is the original line:
DoCmd.OpenForm myFrm, WhereCondition:="[Customer] Like ""*" & x & "*"""

Here is what I tried: (Which returns a type mismatch)
DoCmd.OpenForm myFrm, WhereCondition:=y & " Like " * " & x & " * """"""


any help would be greatly appreciated.

-doodle
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top