Ok how do I get this code to grab data from a table or query based on criteria?
Private Sub Level_AfterUpdate()
Enhance = Me.Enhancelist
Lvl = Me.Level
If Me.Enhancelist <> "" Then
Me.PriceTxt = Lvl
Me.StoreTxt = Enhance
End If
End Sub
so that instead of it saying <> "" it should say =
![tablename].... ????
I was also wondering I had 2 querys cause I couldnt get all the data from the 8 tables to go into 1 query as there is 42 table names and it kept telling me there was too many! arg very confusing
P.S. the tables are set up with 30 entrys each with a name and 42 field names the 30 names are in the enhancelist and the pricetxt is to come out where enhancelist equals one of the 30 entrys and then the text box would show the pricetxt
example table name store1
name| 1| 2| 3|
johne|100|150|200|
janes|150|100|120|
example table name store2
name| 1| 2| 3|
johne|200|150|200|
janes|250|100| 20|
and the from would show that out of the 2 tables that johne level 1 is better off at store2 and that janes level 3 is better at store 1 ext...
Private Sub Level_AfterUpdate()
Enhance = Me.Enhancelist
Lvl = Me.Level
If Me.Enhancelist <> "" Then
Me.PriceTxt = Lvl
Me.StoreTxt = Enhance
End If
End Sub
so that instead of it saying <> "" it should say =
I was also wondering I had 2 querys cause I couldnt get all the data from the 8 tables to go into 1 query as there is 42 table names and it kept telling me there was too many! arg very confusing
P.S. the tables are set up with 30 entrys each with a name and 42 field names the 30 names are in the enhancelist and the pricetxt is to come out where enhancelist equals one of the 30 entrys and then the text box would show the pricetxt
example table name store1
name| 1| 2| 3|
johne|100|150|200|
janes|150|100|120|
example table name store2
name| 1| 2| 3|
johne|200|150|200|
janes|250|100| 20|
and the from would show that out of the 2 tables that johne level 1 is better off at store2 and that janes level 3 is better at store 1 ext...