Very simple database, all it does is:
Select the "Brand" in the first combo box
Which then filters the second combo box to only show the "Product" types for that brand.
Next when the "Product" is selected in the combo box I want it display the "Instructions" for that product in a text box ("Instructions" is on the same line in my table).
I can get the text box to display "ProductID" or same result as the product selected and thats it!!!
Please help!!
This is a favour for some people i used to work with. I'm only used to producing form designs etc. so I'm way out of my deph here.
Here's some of my VB code if that helps:
Expand|Select|Wrap|Line Numbers
- Private Sub CategoryID_Change()
- ProductID.Value = Null
- ProductID.Requery
- End Sub
- Private Sub Detail_Click()
- End Sub
- Private Sub Form_Current()
- ProductID.Requery
- End Sub
- Private Sub ProductID_AfterUpdate()
- Instructions = DLookup("Instructions", "Products", "ProductID=" & ProductID)
- End Sub
- Private Sub Text5_BeforeUpdate(Cancel As Integer)
- End Sub
- Private Sub Text9_AfterUpdate()
- Instructions = DLookup("Instructions", "Products", "ProductID=" & ProductID)
- End Sub
Bunny