Hi Guys,
I've browsed these forums already and have almost solved my issue by using the information I have already found although I still cannot resolve the last few errors in my Dlookup formula. I'm starting to get quite the headache now!
I am making a form (and subform) where I wish to enter supplier invoice information. The data is to be split between 2 tables when it is saved, a supplier invoice table and a order line table (so I can have multiple products against the same invoice number). In the subform, I wish to enter a product code and have its Description, Unit Type, List Price and Discount Price auto updated by using DLookUp.
For example, this is what I have in the control source for the description box on my subform;
=DLookUp("[Description]","tblBrickies","[Product Code]=" & [Product_Code])
The part of the formula [Product_Code] is referencing a text box on the subform. The reason why I have done it this way is so I can save Order Line information to a table separate from where the product information is listed.
I should add that before embarking on this project, I have had no previous exposure to access so to say my knowledge is limited would be a huge understatement! Any insight at all would be appreciated.
Regards,
Adam
I've browsed these forums already and have almost solved my issue by using the information I have already found although I still cannot resolve the last few errors in my Dlookup formula. I'm starting to get quite the headache now!
I am making a form (and subform) where I wish to enter supplier invoice information. The data is to be split between 2 tables when it is saved, a supplier invoice table and a order line table (so I can have multiple products against the same invoice number). In the subform, I wish to enter a product code and have its Description, Unit Type, List Price and Discount Price auto updated by using DLookUp.
For example, this is what I have in the control source for the description box on my subform;
=DLookUp("[Description]","tblBrickies","[Product Code]=" & [Product_Code])
The part of the formula [Product_Code] is referencing a text box on the subform. The reason why I have done it this way is so I can save Order Line information to a table separate from where the product information is listed.
I should add that before embarking on this project, I have had no previous exposure to access so to say my knowledge is limited would be a huge understatement! Any insight at all would be appreciated.
Regards,
Adam