NeoMatrix1217
IS-IT--Management
I have a Combobox called ComboBox1 it gets populated by doing a loop in a access database untill it has filled up. I want to be able to use the selected item in that combobox to populate a textbox from the same database. I have tried the DLookup in VBA but I can seem to get it to work here is the code. When I step into it stops at DLookup with a compile error: sub or function not defined : (
Please Help
Private Sub ComboBox1_AfterUpdate()
TextBox1.Value = DLookup("TText", "Template", "TText='" & ComboBox1.Value & " '")
End Sub
Please Help
Private Sub ComboBox1_AfterUpdate()
TextBox1.Value = DLookup("TText", "Template", "TText='" & ComboBox1.Value & " '")
End Sub