rick roberts
Registered User.
- Local time
- Today, 21:32
- Joined
- Jan 22, 2003
- Messages
- 160
i have a table that contains data on products tblProducts holding ProductID, ProductDescription, Price etc...
i have a subform that has text boxes relating to these fields. the ProductID being the unique number and ProductDescription being a combo box
i want to select a product from the combo box and let the other textboxes populate from the information relating to that product -- using the ProductID as a reference. ive tried DLookup and SQL statements in the control sources of the text boxes and am failing to get a result
below are what ive already tried
DLookUp("UnitPrice","Products","ProductID = " & [ProductID])
SELECT tblProducts.OrderCode FROM tblProducts WHERE ProductID = tblProducts.ProductID
the most common error im getting is
The object doesnt contain the Automation Object tblInvoice
tblInvoice is where the main form gets its info from
can anybody please help me with this
thanks in anticipation
i have a subform that has text boxes relating to these fields. the ProductID being the unique number and ProductDescription being a combo box
i want to select a product from the combo box and let the other textboxes populate from the information relating to that product -- using the ProductID as a reference. ive tried DLookup and SQL statements in the control sources of the text boxes and am failing to get a result
below are what ive already tried
DLookUp("UnitPrice","Products","ProductID = " & [ProductID])
SELECT tblProducts.OrderCode FROM tblProducts WHERE ProductID = tblProducts.ProductID
the most common error im getting is
The object doesnt contain the Automation Object tblInvoice
tblInvoice is where the main form gets its info from
can anybody please help me with this
thanks in anticipation