Hi,
this is the generated sql I get when using the dataadapter query builder:
When I try to generate the dataset I get the error message
Syntax error (missing operator) in query expression tblJobs.contractid=tblContracts.contractid INNER JOIN tblEquipment ON tblContracts.equipmentid=tblEquipment.equipmentid INNER JOIN tblSuppliers On tblJobs.supplierid=tblSuppliers.supplierid
I have created the same query in Access which works fine using this sql:
I have tried placing the brackets in the vb code but still get the same error.
Any ideas?
this is the generated sql I get when using the dataadapter query builder:
Code:
SELECT tblJobs.jobdone, tblJobs.duedate, tblContracts.po_number, tblSuppliers.name, tblEquipment.model, tblEquipment.serial, tblEquipment.type
FROM tblJobs INNER JOIN
tblContracts ON tblJobs.contractid = tblContracts.contractid INNER JOIN
tblEquipment ON tblContracts.equipmentid = tblEquipment.equipmentid INNER JOIN
tblSuppliers ON tblJobs.supplierid = tblSuppliers.supplierid
WHERE (tblJobs.jobdone = 0)
When I try to generate the dataset I get the error message
Syntax error (missing operator) in query expression tblJobs.contractid=tblContracts.contractid INNER JOIN tblEquipment ON tblContracts.equipmentid=tblEquipment.equipmentid INNER JOIN tblSuppliers On tblJobs.supplierid=tblSuppliers.supplierid
I have created the same query in Access which works fine using this sql:
Code:
SELECT tblJobs.*, tblContracts.po_number, tblSuppliers.name, tblContracts.equipmentid, tblEquipment.serial, tblEquipment.model, tblEquipment.type
FROM ((tblJobs INNER JOIN tblContracts ON tblJobs.contractid = tblContracts.contractid) INNER JOIN tblSuppliers ON tblContracts.Supplierid = tblSuppliers.supplierid) INNER JOIN tblEquipment ON tblContracts.equipmentid = tblEquipment.equipmentid
WHERE (((tblJobs.jobdone)=False));
I have tried placing the brackets in the vb code but still get the same error.
Any ideas?