R
reddy
I have a query that obtains its critieria from a form.
Select *
From tblData
Where Date=[Forms]![FrmMonthlies]![CmbDate]
If no date is chosen on the Form, I want the Date criteria in the Query to
be blank.
I tried this:
Select *
From tblData
Where Date=
IIF([Forms]![FrmMonthlies]![CmbDate]="","",[Forms]![FrmMonthlies]![CmbDate])
This gives me an error. Please advise.
Select *
From tblData
Where Date=[Forms]![FrmMonthlies]![CmbDate]
If no date is chosen on the Form, I want the Date criteria in the Query to
be blank.
I tried this:
Select *
From tblData
Where Date=
IIF([Forms]![FrmMonthlies]![CmbDate]="","",[Forms]![FrmMonthlies]![CmbDate])
This gives me an error. Please advise.