ACC95: Parameter Query Excludes Ending Date (149945)
The information in this article applies to:
- Microsoft Access for Windows 95 7.0
This article was previously published under Q149945
Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you use a Date/Time field as a parameter within a parameter query,
where both valid dates and times have been stored within the Date/Time
field, some of the expected records may not appear in the recordset when
you type only dates (excluding time values)into the parameter box when
prompted.
RESOLUTION
To work around this behavior, enter 11:59:59pm as part of the parameter
value when entering a date into the parameter box prompt, or enter the day
you want plus one. For example, if you want 07/31/93, enter a date of
08/01/93 when prompted for a date.
Another approach would be to create a field expression within the parameter
query that would parse the time from the Date/Time field. For example:
Expr1: CVDate(Int([<DateTimeFld>]))
where <DateTimeFld> would be replaced by the name of the actual Date/Time
field within the table.
Modification Type: | Major | Last Reviewed: | 7/5/2002 |
---|
Keywords: | kbprb kbusage KB149945 |
---|
|