I have a control called Pnummer (its personell number).
After a user enters this number i want my combobox called Kenteken (Licenseplate number) to fill with only the licence plate numbers of the employee from the table Parkeerbeheer (Parking management)
Should be simple enough, its like cascading comboboxes but then with only one combobox.
So i put this code in the afterupdate event of the Pnummer control :
Code:
On Error Resume Next
kzlKenteken.RowSource = "Select parkeerbeheer.kenteken " & _
"FROM parkeerbeheer " & _
"WHERE parkeerbeheer.pnummer = '" & fldPnummer.Value & "' " & _
"ORDER BY parkeerbeheer.kenteken;"
I have left the rowsource blanc as above code handles that.
The only thing that comes to mind why it doesn't work is that the table bound to this form is NOT the source where i pull the licenceplate numbers from.
Any idea's or help is greatly appreciated, after trying for two days now im pulling my hair out !