Hi,
Someone please help on the below code.. I am new to MS Access..
when I test this code it showing a "Data type mismatch in criteria expression" Error
The customer Number is Numbers
Someone please help on the below code.. I am new to MS Access..
Code:
Option Compare Database
Private Sub Combo2_AfterUpdate()
Dim Org As String
Org = "Select * from StoreDat where ([Customer Number] = " & Me.Combo2 & ")"
Me.StoreDat_subform.Form.RecordSource = Org
Me.StoreDat_subform.Form.Requery
End Sub
when I test this code it showing a "Data type mismatch in criteria expression" Error
The customer Number is Numbers