populate combobox from another
I am trying to ge this to work adn not having any luck
What I have is a form with a Dropdown box (Combo85). This is hard coded with field names from a table I have (Table is dbo_Core2).
What I am trying to do Is populate another dropdown box (Combo89) with the unique values from the field choosen in the first Dropdown box (Combo85)
So I get the field name from the variable I set up and try and put in this query string and I am getting errors...dosent like the Me.Value...I think there are other problems but cant find them
Any thoughts?
Thanks
Code:
Private Sub Combo89_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
Dim varFieldType As String
varFieldType = Combo85
MsgBox varFieldType
Dim MySQL As String
'MySQL = ""
'MySQL = dlookup("[varFieldType]", "dbo_Core2", "CriteriaField = " me.Value)
'MsgBox MySQL
'DoCmd.RunSQL MySQL
End Sub
Jaykappy, May 7th, 2008 12:15 PM
Bookmarks