A simple SQL clause

  • Thread starter Thread starter giannis
  • Start date Start date
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'""
 
Back
Top