the following code does not work
i have a table named ProjectTable with a field named Project Name and at least 1 record in that field that stats with the letter T
any reason why this code doesn't work?
it is run from a command button on a form
Dim x As String
x = "SELECT * FROM [ProjectTable] WHERE [Project Name]='T%';"
DoCmd.RunSQL x
i have also tried
Dim x As String
x = "SELECT * FROM [ProjectTable] WHERE [ProjectTable].[Project Name]='T%';"
DoCmd.RunSQL x
i attached the error i get
clicking the help button on that error box provides no clues either
i guess it is a syntax error but i don't know what i wrote wrong
thanks for any help
Start Free Trial