james_halliwell
Registered User.
- Local time
- Today, 21:56
- Joined
- Feb 13, 2009
- Messages
- 211
Hi veryone,
Hope you all are well, Please could someone help me i have cascading combo boxs, but from the drop down list the dont they dont seem to be in numerical order i think is somthing like ORDER BY but im not sure on how to add it to the code
New to access but trying my best, if someone could point me in the right direction of how the code works that would be perfect
Private Sub Combo0_AfterUpdate()
Me.Combo2.RowSource = "SELECT [hips_product].Product, [hips_product].Quantity, [hips_product].Sales_12_month, [hips_product].Sales_3_month FROM [hips_product] " & _
"WHERE [HOSPITAL NO & NAME] = '" & Me.Combo0 & "'"
Me.Combo2.Requery
End Sub
Its the [hips_product].Product that contains a product code ie 1124571, but it seems to put them in any order
Hope you all are well, Please could someone help me i have cascading combo boxs, but from the drop down list the dont they dont seem to be in numerical order i think is somthing like ORDER BY but im not sure on how to add it to the code
New to access but trying my best, if someone could point me in the right direction of how the code works that would be perfect
Private Sub Combo0_AfterUpdate()
Me.Combo2.RowSource = "SELECT [hips_product].Product, [hips_product].Quantity, [hips_product].Sales_12_month, [hips_product].Sales_3_month FROM [hips_product] " & _
"WHERE [HOSPITAL NO & NAME] = '" & Me.Combo0 & "'"
Me.Combo2.Requery
End Sub
Its the [hips_product].Product that contains a product code ie 1124571, but it seems to put them in any order