Hi everyone, it's been a while so I'm pretty rusty. I am building a form that uses combobox's to select parameters from tables, and I want to pass those form control values to a stored query. I have created a button on the form that calls the stored query, qry_VIP_DESCR, but I am returning no results.
Here is the SQL Design of qry_VIP_DESCR:
And here is the code I am calling in the form VBA:
Please help. I know there is something very simple I am missing! Thanks!
Here is the SQL Design of qry_VIP_DESCR:
VBA Code:
SELECT tbl_VIP_COUNTS.[ID], tbl_VIP_COUNTS.[MSO], tbl_VIP_COUNTS.[VIP_FLG], tbl_VIP_COUNTS.[VIPDESCR], tbl_VIP_COUNTS.[ACTVS], tbl_VIP_COUNTS.[DISCOS], tbl_VIP_COUNTS.[CNT]
FROM tbl_VIP_COUNTS
WHERE (([Forms]![frm_VIP_DESC]![cmbVIP]=[tbl_VIP_COUNTS]![VIP_FLG]));
And here is the code I am calling in the form VBA:
VBA Code:
Private Sub cmd_VIP_Desc_Click()
DoCmd.OpenQuery "qry_VIP_DESCR"
End Sub
Please help. I know there is something very simple I am missing! Thanks!