A simple SQL clause

G

giannis

I have the SQL clause :

SELECT * FROM Table WHERE F Like "*"+"a"

This clause is correct; but I must insert this in a VB code as :

Forms!myform.RecordSource= (SQL clause)

How can write this?

I tried this but i receive error message (syntax error)

Forms!myform.RecordSource = "SELECT * FROM Table WHERE F Like " & "'*'" & "
+ " & "'a'""
 

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

Top