Skip Bisconer
Who Me?
- Local time
- Yesterday, 16:43
- Joined
- Jan 22, 2008
- Messages
- 285
I have a form built off a query of a table that has three comboboxes among other fields. This is the SQL from the query. First in the underlying table I made the DriverID, RouteID and VehicleID a lookup field. When I used the query as a Control source for the form I would get the lookup portion of the combobox in the drop down menu but I wasn't able to select any item off the list. So I thought I would make them unbound. I could select the item because I pulled them of the actual Drive, Route, vehicle lookup tables but the form wouldn't update the query. I made the query field as the datasource but that didn't work. So I tried to undo the lookup fields in the table and just added them as text fields and type in my values and it wouldn't let me do that. I originally built the ID fields in the OrderHeader to beable to use therelationship of the Driver, Route, and vehicle and assign the value to the query from the form. I am really missing the boat here. Can some one help?
SELECT [tblOE Invoice Header].OEOO_ORDR, [tblOE Invoice Header].OEOO_STAT, [tblOE Invoice Header].OEOO_CUST, [tblAR Customer Master].ARCM_NAME, [tblOE Invoice Header].OEOO_SHPV, [tblOE Invoice Header].OEOO_OSZP, [tblOE Invoice Header].DriverID, [tblOE Invoice Header].RouteID, [tblOE Invoice Header].VehicleID
FROM [tblAR Customer Master] INNER JOIN [tblOE Invoice Header] ON [tblAR Customer Master].ARCM_CUST = [tblOE Invoice Header].OEOO_CUST
WHERE ((([tblOE Invoice Header].OEOO_STAT)=49 Or ([tblOE Invoice Header].OEOO_STAT)=50) AND (([tblOE Invoice Header].OEOO_SHPV) Like "*OUR TRUCK"))
ORDER BY [tblOE Invoice Header].OEOO_ORDR;
SELECT [tblOE Invoice Header].OEOO_ORDR, [tblOE Invoice Header].OEOO_STAT, [tblOE Invoice Header].OEOO_CUST, [tblAR Customer Master].ARCM_NAME, [tblOE Invoice Header].OEOO_SHPV, [tblOE Invoice Header].OEOO_OSZP, [tblOE Invoice Header].DriverID, [tblOE Invoice Header].RouteID, [tblOE Invoice Header].VehicleID
FROM [tblAR Customer Master] INNER JOIN [tblOE Invoice Header] ON [tblAR Customer Master].ARCM_CUST = [tblOE Invoice Header].OEOO_CUST
WHERE ((([tblOE Invoice Header].OEOO_STAT)=49 Or ([tblOE Invoice Header].OEOO_STAT)=50) AND (([tblOE Invoice Header].OEOO_SHPV) Like "*OUR TRUCK"))
ORDER BY [tblOE Invoice Header].OEOO_ORDR;