Stephanie T.
Registered User.
- Local time
- Today, 09:39
- Joined
- Jun 20, 2002
- Messages
- 60
OK, I have been looking at other posts and using some of the suggestions there. Unfortunately, the ones that seem to answer my needs have problems, but are so old I don’t think it appropriate to contact the posters now. So here goes…
I have a table called tblProducts. I then have a form called frmSalesInfo where one can pick a product name from a combo box populated by the product names from tblProducts. This combo box is called cboProductName. The next text box is where I would like the UPC code to auto fill based on the chosen Product Name. The UPC code is the primary key in tblProducts. Since the columns in the query builder for the combo box have the UPC code first and the Product Name second I have put an After Update event of:
Me.(ProductUPC) = Me.cboProductName.Column(0)
I keep getting a message that Access cannot find the macro Me and it or its group does not exist. Perhaps there is a problem with the code? Perhaps I have not created a proper relationship? Do I need to write a macro?
Any help would be greatly appreciated.
Stephanie T.
I have a table called tblProducts. I then have a form called frmSalesInfo where one can pick a product name from a combo box populated by the product names from tblProducts. This combo box is called cboProductName. The next text box is where I would like the UPC code to auto fill based on the chosen Product Name. The UPC code is the primary key in tblProducts. Since the columns in the query builder for the combo box have the UPC code first and the Product Name second I have put an After Update event of:
Me.(ProductUPC) = Me.cboProductName.Column(0)
I keep getting a message that Access cannot find the macro Me and it or its group does not exist. Perhaps there is a problem with the code? Perhaps I have not created a proper relationship? Do I need to write a macro?
Any help would be greatly appreciated.
Stephanie T.