J
Jack
Hi,
I need to convert a QBE query to sql string
The QBE in sql is as follows:
SELECT EmployeePlant.EmployeeID, EmployeePlant.EmployeeName,
EmployeePlant.Type
FROM EmployeePlant
WHERE (((EmployeePlant.Type) Like "*Quality*" Or (EmployeePlant.Type) Like
"*Q A*" Or (EmployeePlant.Type) Like "*QA*") AND
((EmployeePlant.Plant)=[Forms]![frmActionRequestFiltered]![cboPlants]));
How does one do this especially with the like clause. I appreciate any help.
I have started doing the following:
strSQL1 = "SELECT EmployeePlant.EmployeeID, EmployeePlant.EmployeeName,
EmployeePlant.Type FROM EmployeePlant " & _
"WHERE ((EmployeePlant.Type) Like '" * Quality * "'"
However I am getting type mismatch error.
Thanks
I need to convert a QBE query to sql string
The QBE in sql is as follows:
SELECT EmployeePlant.EmployeeID, EmployeePlant.EmployeeName,
EmployeePlant.Type
FROM EmployeePlant
WHERE (((EmployeePlant.Type) Like "*Quality*" Or (EmployeePlant.Type) Like
"*Q A*" Or (EmployeePlant.Type) Like "*QA*") AND
((EmployeePlant.Plant)=[Forms]![frmActionRequestFiltered]![cboPlants]));
How does one do this especially with the like clause. I appreciate any help.
I have started doing the following:
strSQL1 = "SELECT EmployeePlant.EmployeeID, EmployeePlant.EmployeeName,
EmployeePlant.Type FROM EmployeePlant " & _
"WHERE ((EmployeePlant.Type) Like '" * Quality * "'"
However I am getting type mismatch error.
Thanks