I am using MS ACCESS where I am changing the recordsource of the form in the afterupdate event of a combobox. Here is the sql query used
Me.RecordSource = "SELECT * FROM qryMIMATRIX WHERE qryMIMATRIX.A_LOCATION = " & Me.cboLocate.Value & ";"
cboLocate is the name of the combobox and qryMIMATRIX is the name of the query.
On afterupdate event of the I am prompted to enter parameter which is not desirable.Help me out..
If
a_loactionfield is string type you need to wrap value with quotes:"SELECT * FROM qryMIMATRIX WHERE qryMIMATRIX.A_LOCATION = '" & Me.cboLocate.Value & "'"