spartansFC
Programmer
Hi
I know how to filter reports via form combos but for some reason, a little glitch is happening, when i click the command button a pop up window appears asking to enter the paramater value, for example if i've selected May-13 for the combo box, the parameter pop up window will ask for "May", if i put in any number, the report will then run with the filter applied, so i'm not sure what's going on.
the combo box has:
the command button to print the report has:
the query has: expr2: Format([TheDate],"mmm-yy"), then the criteria is [Forms]![frmAvailability1AElswickMain]![cmbMonthYear]
the report does work, i just need to get rid of this annoying pop up window
Mikie
I know how to filter reports via form combos but for some reason, a little glitch is happening, when i click the command button a pop up window appears asking to enter the paramater value, for example if i've selected May-13 for the combo box, the parameter pop up window will ask for "May", if i put in any number, the report will then run with the filter applied, so i'm not sure what's going on.
the combo box has:
Code:
SELECT tblAvailabilityMonths.strAvailabilityMnthDesc, tblAvailabilityMonths.lngAvailabilityMnthID FROM tblAvailabilityMonths GROUP BY tblAvailabilityMonths.strAvailabilityMnthDesc, tblAvailabilityMonths.lngAvailabilityMnthID ORDER BY tblAvailabilityMonths.lngAvailabilityMnthID;
the command button to print the report has:
Code:
Private Sub Command38_Click()
If IsNull([cmbMonthYear]) Then
MsgBox "Apply a filter to the form first."
Else
DoCmd.OpenReport "Registers: Elswick", acViewPreview, , Me.cmbMonthYear
End If
End Sub
the query has: expr2: Format([TheDate],"mmm-yy"), then the criteria is [Forms]![frmAvailability1AElswickMain]![cmbMonthYear]
the report does work, i just need to get rid of this annoying pop up window
Mikie