P
Piri
I am trying to run the following - all fields concerned are text:
Dim dbs As Database
Set dbs = CurrentDb()
dbs.Execute "SELECT IN_Main.PartNo, IN_BinLocation.Description FROM " _
& "IN_BinLocation INNER JOIN IN_Main ON IN_BinLocation.IN_MainID =
'[IN_Main.InventoryID] " _
& " WHERE (((IN_BinLocation.IN_LogicalID) = 'ZZZZZZZZZZ0000000000'))
ORDER BY IN_Main.PartNo;"
where the table IN_Main holds a list of part numbers and the table
IN_BinLocation a list of locations.
IN_Main.InventoryID is the common part number identifier in both
tables. IN_LogicalID in the IN_BinLocation table identifies the
warehouse.
I am getting an error message :
Error - 3075 - Syntax error (missing operator) in query expression
'IN_BinLocation.IN_MainID = '[IN_Main.InventoryID] WHERE
(((IN_BinLocation.IN_LogicalID) = 'ZZZZZZZZZZ0000000000'))ORDER BY
IN_Main.PartNo;'.
I've tried to find the problem to no avail.
Any help appreciated.
Piri
Dim dbs As Database
Set dbs = CurrentDb()
dbs.Execute "SELECT IN_Main.PartNo, IN_BinLocation.Description FROM " _
& "IN_BinLocation INNER JOIN IN_Main ON IN_BinLocation.IN_MainID =
'[IN_Main.InventoryID] " _
& " WHERE (((IN_BinLocation.IN_LogicalID) = 'ZZZZZZZZZZ0000000000'))
ORDER BY IN_Main.PartNo;"
where the table IN_Main holds a list of part numbers and the table
IN_BinLocation a list of locations.
IN_Main.InventoryID is the common part number identifier in both
tables. IN_LogicalID in the IN_BinLocation table identifies the
warehouse.
I am getting an error message :
Error - 3075 - Syntax error (missing operator) in query expression
'IN_BinLocation.IN_MainID = '[IN_Main.InventoryID] WHERE
(((IN_BinLocation.IN_LogicalID) = 'ZZZZZZZZZZ0000000000'))ORDER BY
IN_Main.PartNo;'.
I've tried to find the problem to no avail.
Any help appreciated.
Piri