G
Guest
Hi Al
Wondered if you could help. I've got two combo boxes on a form. Once you've selected a value from first, second one is requeried and a value is displayed in the field below. However, whilst the requery on the combo is working the field is displaying the wrong result. I have written the following code to try and link the field to return a value depending on what is selected in both combo boxes but I am stumped as to where I'm going wrong. The fact that I'm a total novice to VB and SQR doesn't help
The code is as follows
Private Sub Combo9_AfterUpdate(
[matQRY SubForm].Requer
' Find the record that matches the control
Me.Price.RowSource = "SELECT Price FROM" &
" MatQry WHERE Material = " & Me.Combo7 &
" MatQry WHERE Colour = " & Me.Combo9 &
Me.Price = Me.Price.ItemData(0
When I choose valued from the two combo boxes and error is displayed saying
Compile error: Method or data member not found. And the second off last Me.Price is highlighted in the debugger screen
Can anyone explain to me what I'm doing wrong and if indeed, this is the correct way of doing this. HELP!
Many thanks to anyone who responds
Donna
Wondered if you could help. I've got two combo boxes on a form. Once you've selected a value from first, second one is requeried and a value is displayed in the field below. However, whilst the requery on the combo is working the field is displaying the wrong result. I have written the following code to try and link the field to return a value depending on what is selected in both combo boxes but I am stumped as to where I'm going wrong. The fact that I'm a total novice to VB and SQR doesn't help
The code is as follows
Private Sub Combo9_AfterUpdate(
[matQRY SubForm].Requer
' Find the record that matches the control
Me.Price.RowSource = "SELECT Price FROM" &
" MatQry WHERE Material = " & Me.Combo7 &
" MatQry WHERE Colour = " & Me.Combo9 &
Me.Price = Me.Price.ItemData(0
When I choose valued from the two combo boxes and error is displayed saying
Compile error: Method or data member not found. And the second off last Me.Price is highlighted in the debugger screen
Can anyone explain to me what I'm doing wrong and if indeed, this is the correct way of doing this. HELP!
Many thanks to anyone who responds
Donna