I have a date field in a table formatted as a "Medium Date", e.g.,
29-Mar-06. When I filter by that selection it's okay when the date is
after the 13th of the month, but for the 12th or below it transposes
the month with the day, so if I filter by 1-Feb-06, I get those records
from 2-Jan-06. Anything I can do about this?
Thanks for any help.
Rachel Bourne 3 2150
See:
International Date Formats in Access
at: http://allenbrowne.com/ser-36.html
The article explains how to avoid the 3 cases where Access misunderstands
your non-American dates.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Eddie901" <ed******@gmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com... I have a date field in a table formatted as a "Medium Date", e.g., 29-Mar-06. When I filter by that selection it's okay when the date is after the 13th of the month, but for the 12th or below it transposes the month with the day, so if I filter by 1-Feb-06, I get those records from 2-Jan-06. Anything I can do about this?
Thanks for this information, Allen. Having read it, I am still confused
as to what I have to do to solve my problem, however. Or maybe I just
have to live with it...
Allen Browne wrote: See: International Date Formats in Access at: http://allenbrowne.com/ser-36.html
The article explains how to avoid the 3 cases where Access misunderstands your non-American dates.
-- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org.
"Eddie901" <ed******@gmail.com> wrote in message news:11**********************@j33g2000cwa.googlegr oups.com...I have a date field in a table formatted as a "Medium Date", e.g., 29-Mar-06. When I filter by that selection it's okay when the date is after the 13th of the month, but for the 12th or below it transposes the month with the day, so if I filter by 1-Feb-06, I get those records from 2-Jan-06. Anything I can do about this?
The format JET expects for a literal date in a SQL statement is mm/dd/yyyy,
delimited with #.
When you create a filter string, you need to use that format.
If you copy the SQLDate() function from the article, you can add the date to
your filter string like this:
strWhere = "[MyDateField] = " & SQLDate(Me.MyTextBox)
Or, you can use the Format() function directly if you prefer:
strWhere = "[MyDateField] = " & Format(Me.MyTextBox, "\#mm\/dd\/yyyy\#")
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Eddie901" <ed******@gmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com... Thanks for this information, Allen. Having read it, I am still confused as to what I have to do to solve my problem, however. Or maybe I just have to live with it...
Allen Browne wrote: See: International Date Formats in Access at: http://allenbrowne.com/ser-36.html
The article explains how to avoid the 3 cases where Access misunderstands your non-American dates.
"Eddie901" <ed******@gmail.com> wrote in message news:11**********************@j33g2000cwa.googlegr oups.com... >I have a date field in a table formatted as a "Medium Date", e.g., > 29-Mar-06. When I filter by that selection it's okay when the date is > after the 13th of the month, but for the 12th or below it transposes > the month with the day, so if I filter by 1-Feb-06, I get those records > from 2-Jan-06. Anything I can do about this? This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Toby |
last post by:
I've a DataAdapter with:
SELECT ID, Employee, , Period_End_Date, Job, Description, Exported,
Units, Cost_Code, Category, Class, Chargeout_Level, PayID, Rate
FROM tblTimeEntry
WHERE ...
|
by: CSDunn |
last post by:
Hello,
I have a problem with field filtering between an Access 2000 Project form
(the application is called CELDT), and the report that shows the results of
the filter. Both the form and the...
|
by: dick |
last post by:
I am just trying to print/report the results of a "filter by
selection" which is done by right-clicking a form, filling in values,
and "applying the filter."
I have searched the newsgroups, and...
|
by: Afton |
last post by:
I would like to make a form that filters a report by Supervisor and by
starting and ending date.
I have the supervisors in a combo box, and that works.
However, I do not know how to code to let...
|
by: Ralph2 |
last post by:
Some time ago with a lot of help from this group I made a reasonably
successful database to keep track of our shop drawings. However the
searching mechanism is too complicated for the occasional...
|
by: Bob |
last post by:
I am in the process of upgrading an Access database to SQL Server (and
climbing that learning curve!). The wizard happily upgraded all the tables
and I can link to them OK using ODBC.
The...
|
by: lorirobn |
last post by:
Hi,
I have a report that works just fine.
Now I would like to add the capability to choose selection criteria to
limit what is displayed. I created several reports that do this, but
they used...
|
by: jcf378 |
last post by:
hi all.
I have a form which contains a calculated control ("days") that outputs the # of days between two dates (DateDiff command between the fields and ).
However, when I click "Filter by...
|
by: dee |
last post by:
I'd like to filter by the following criteria:
left(LeadDisposition,3) = "Sit" AND Appt_Date = Text767
I have no idea how to do this. Appreciate help.
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |