misdirection
Registered User.
- Local time
- Yesterday, 16:21
- Joined
- Jun 30, 2008
- Messages
- 15
Ok, I am very annoyed with the parameter value box which requires me to enter a value and it was unintentional and wasn't suppose to happen.
On the main menu, I am trying to generate the report based on the date range, report type, and document type, here's my VB code:
If IsDate([txtFirstDate]) And IsDate([txtEndDate]) Then
recDateCrit = "[txtDateRecieved] >= # " & [txtFirstDate] & "# AND [txtDateRecieved]<=#" & [txtEndDate] & "# AND cmbDocumentType = '" & Me.lstDocType & "'"
DoCmd.OpenReport "rptDateRecieved", acViewPreview, , recDateCrit
It's suppose to work as intented, but I KEEP getting the parameter box popping up for dateRecieved and DocumentTypye. I used the Access Help featured and I went through every steps to get rid of it, and it won't.
What did I do wrong???
On the main menu, I am trying to generate the report based on the date range, report type, and document type, here's my VB code:
If IsDate([txtFirstDate]) And IsDate([txtEndDate]) Then
recDateCrit = "[txtDateRecieved] >= # " & [txtFirstDate] & "# AND [txtDateRecieved]<=#" & [txtEndDate] & "# AND cmbDocumentType = '" & Me.lstDocType & "'"
DoCmd.OpenReport "rptDateRecieved", acViewPreview, , recDateCrit
It's suppose to work as intented, but I KEEP getting the parameter box popping up for dateRecieved and DocumentTypye. I used the Access Help featured and I went through every steps to get rid of it, and it won't.

What did I do wrong???