I have a form with a combo box (cboMake) on it. I have a table(tblCar).
I am trying to populate distinct values into a combo box and access is not working like SQL?
I thought his would work but I guees not. Can someone tell me what I am doing wrong? I am getting a object variable or with variable not set error.
my code:
Private Sub Form_Load()
Me.cboMake.Recordset = "SELECT DISTINCT * FROM tblCar"
End Sub
I am trying to populate distinct values into a combo box and access is not working like SQL?
I thought his would work but I guees not. Can someone tell me what I am doing wrong? I am getting a object variable or with variable not set error.
my code:
Private Sub Form_Load()
Me.cboMake.Recordset = "SELECT DISTINCT * FROM tblCar"
End Sub