I'm having a complete headache over how i get something i want to display in a text box to be a result of something i've selected in the combo box???
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 "Instructio ns" for that product in a text box ("Instructio ns" 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:
Many Thanks
Bunny
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 "Instructio ns" for that product in a text box ("Instructio ns" 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:
Code:
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
Comment