Hi all:
I have a form for ordering parts. My combo boxes are Manufacturer, Part#, and Part Description. When selecting a Manufacturer, I want only Part #s from those manufacturers to appear in the combo box. Ditto for part description. When updating either Part Description or Part#, I want the other box to be updated with the proper information.
When I select a manufacturer from the first combo box, I get a popup box that asks me to "Enter Parameter Value" for Me.Mfgr. Here is my code:
Previous to this, I had Me.Mfgr without quotes. However, mfgr is a text field, so I thought I had to have quotes.
Can anyone help?
Thanks,
Miranda
I have a form for ordering parts. My combo boxes are Manufacturer, Part#, and Part Description. When selecting a Manufacturer, I want only Part #s from those manufacturers to appear in the combo box. Ditto for part description. When updating either Part Description or Part#, I want the other box to be updated with the proper information.
When I select a manufacturer from the first combo box, I get a popup box that asks me to "Enter Parameter Value" for Me.Mfgr. Here is my code:
Code:
Private Sub Mfgr_AfterUpdate()
Me.PartNumber.RowSource = "SELECT PartNumber FROM tblParts WHERE mfgr = " & "Me.Mfgr" & ""
End Sub
Previous to this, I had Me.Mfgr without quotes. However, mfgr is a text field, so I thought I had to have quotes.
Can anyone help?
Thanks,
Miranda