RE: Filter a Report
- From: "injanib via AccessMonster.com" <u35551@uwe>
- Date: Fri, 10 Aug 2007 19:00:30 GMT
Thanks for the help, but my date field on the report is set to =date() in the
control source. I have set the input mask to display date in MM/DD/YYYY
format. When I use the method you told me I get a syntax error. Does it have
to do with inconsistent date format?
The other one works perfect.
Duane Hookom wrote:
I would add a text box txtReceivedOn with a default value of Date() and a
combo box cboManifest of distinct manifest numbers. Then modify the code
behind your buttons like:
Dim strWhere as String
strWhere = "ReceivedOn=#" & Me.txtReceivedOn & "#"
DoCmd.OpenReport "rptYourRpt", acPreview, , strWhere
and the other
Dim strWhere as String
strWhere = "ManifestNumber=" & Me.cboManifest
DoCmd.OpenReport "rptYourRpt", acPreview, , strWhere
I have a report that has two fields called "ManifestNumber" (number field)[quoted text clipped - 10 lines]
and "RecievedOn" (Date/Time).
Help!
--
Message posted via http://www.accessmonster.com
.
- References:
- Filter a Report
- From: injanib via AccessMonster.com
- Filter a Report
- Prev by Date: RE: Weird Problem with a Subreport
- Next by Date: RE: Weird Problem with a Subreport
- Previous by thread: Filter a Report
- Next by thread: RE: Filter a Report
- Index(es):
Loading