zathrus777
Programmer
This is the SQl produced by access from my QBE query
SELECT felearnaim.ID, felearnaim.A14, felearnaim.ERRORS
FROM felearner INNER JOIN felearnaim ON felearner.ID = felearnaim.STUDENT
WHERE (((felearnaim.ERRORS) Like "*""a14_*"
);
When I try to run the same query in VBA it baulks on the
Like "*""a14_*"
);
I tried it on a simpler text string:
ExpNames.Open _
"SELECT ID, A14 FROM felearnaim " & _
"Where ERRORS like '*TH*'", CurrentProject.Connection
but this produces nothing. I know the problem is the syntax of the "" I need. Any ideas?
Mike
note this was also posted in the JET SQL forum but I think this forum is more appropriate.
SELECT felearnaim.ID, felearnaim.A14, felearnaim.ERRORS
FROM felearner INNER JOIN felearnaim ON felearner.ID = felearnaim.STUDENT
WHERE (((felearnaim.ERRORS) Like "*""a14_*"
When I try to run the same query in VBA it baulks on the
Like "*""a14_*"
I tried it on a simpler text string:
ExpNames.Open _
"SELECT ID, A14 FROM felearnaim " & _
"Where ERRORS like '*TH*'", CurrentProject.Connection
but this produces nothing. I know the problem is the syntax of the "" I need. Any ideas?
Mike
note this was also posted in the JET SQL forum but I think this forum is more appropriate.