L
lepricon
I am trying to get one combobox to update when you change the value of
another one. I.E. you change combobox 1 from a to b and combobox 2 changes
from 1&2 to 3&4. Also if you want to change back then it would do that. It
changes once but will not update after that. Here is the code that I am
using. Anyone have any ideas?
Private Sub Combo6_AfterUpdate()
Dim strSQL As String
strSQL = "Select " & Me!Combo4
strSQL = "charge code" strSQL & "Table1"
Me!Combo6.RowSourceType = "Table/Query"
Me!Combo6.RowSource = strSQL
End Sub
another one. I.E. you change combobox 1 from a to b and combobox 2 changes
from 1&2 to 3&4. Also if you want to change back then it would do that. It
changes once but will not update after that. Here is the code that I am
using. Anyone have any ideas?
Private Sub Combo6_AfterUpdate()
Dim strSQL As String
strSQL = "Select " & Me!Combo4
strSQL = "charge code" strSQL & "Table1"
Me!Combo6.RowSourceType = "Table/Query"
Me!Combo6.RowSource = strSQL
End Sub