I am having trouble with getting it to grab the data in the form I have the form connected to the enhancement table and I have the following code for the first dropdown
there are 2 Combo Boxes the first one is Enhnamelist and the second is ENhLevelList I also have 2 txt fields named EnhPriceSellTxt, EnhPriceBuyTxt and based on the choices of the Combo Boxes the txt fields are filled in with the value that matches in the table (well actually I want it to go through the table and find the highest number in EnhPrice (field) and put that in EnhPriceSell
It doesnt seem to loop through the table at all so I know I am missing something!
there are 2 Combo Boxes the first one is Enhnamelist and the second is ENhLevelList I also have 2 txt fields named EnhPriceSellTxt, EnhPriceBuyTxt and based on the choices of the Combo Boxes the txt fields are filled in with the value that matches in the table (well actually I want it to go through the table and find the highest number in EnhPrice (field) and put that in EnhPriceSell
PHP:
Private Sub EnhNameList_AfterUpdate()
If Me.Enhnamelist = Me.Enhname And Me.enhLevellist = Me.EnhLevel Then
Me.EnhPriceSellTxt = Me.EnhPricesell
Me.EnhPriceBuyTxt = Me.EnhPricebuy
Else
Me.EnhPriceSellTxt = ""
Me.EnhPriceBuyTxt = ""
End If
End Sub
It doesnt seem to loop through the table at all so I know I am missing something!