473,386 Members | 1,621 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Date Criteria Problem

I have a query to return records within a date range. I have a prompt to
enter a start and end date which works fine as long as I enter the date in
mm/dd/yy format (even though the date field is in dd/mm/yy format). Problem
is I want to enter the date in the prompt as dd/mm/yy. How and where do I
format the prompt entry to dd/mm/yy ?

Greg
Nov 13 '05 #1
4 1643
gregork wrote:
I have a query to return records within a date range. I have a prompt
to enter a start and end date which works fine as long as I enter the
date in mm/dd/yy format (even though the date field is in dd/mm/yy
format). Problem is I want to enter the date in the prompt as
dd/mm/yy. How and where do I format the prompt entry to dd/mm/yy ?

Greg


When explicitly used in a query you must use US format or a non-ambiguous format
(either ISO or one where the month uses characters). That is unless you want to
parse it and convert it.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #2
Gregork,
Me thinks this is one case where designing & coding your own dialog box make
sense. You can put your date validation code in the dialog box.

"gregork" <gr*****@paradise.net.nz> wrote in message
news:41********@clear.net.nz...
I have a query to return records within a date range. I have a prompt to
enter a start and end date which works fine as long as I enter the date in
mm/dd/yy format (even though the date field is in dd/mm/yy format).
Problem
is I want to enter the date in the prompt as dd/mm/yy. How and where do I
format the prompt entry to dd/mm/yy ?

Greg

Nov 13 '05 #3
Thaks for the replies. Dialog box sounds good.....where would I find one of
those? (newbie)

greg

"Alan Webb" <kn*****@hotmail.com> wrote in message
news:E5********************@comcast.com...
Gregork,
Me thinks this is one case where designing & coding your own dialog box make sense. You can put your date validation code in the dialog box.

"gregork" <gr*****@paradise.net.nz> wrote in message
news:41********@clear.net.nz...
I have a query to return records within a date range. I have a prompt to
enter a start and end date which works fine as long as I enter the date in mm/dd/yy format (even though the date field is in dd/mm/yy format).
Problem
is I want to enter the date in the prompt as dd/mm/yy. How and where do I format the prompt entry to dd/mm/yy ?

Greg


Nov 13 '05 #4
gregork wrote:
Thaks for the replies. Dialog box sounds good.....where would I find
one of those? (newbie)


What Alan meant was that you create your own *form* for entering the criteria
and have the query pull its criteria from the form.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: David B | last post by:
I have 2 querys with the following in the date criteria Between DateAdd("m",-6,(!!)) And (!!) Between DateAdd("m",-24,(!!)) And DateAdd("m",-6,(!!)) Problem is they both look at the same...
3
by: captain | last post by:
Below is the sql for data with same date need to extract + or - 5 days data of same date also. How to also get data of + and - days related to same date. SELECT IM.Area, IM.Location,...
4
by: Tony | last post by:
Hey guys, I use Google Groups quite a bit as it is an enormous wealth of information, and now I need some help. I have created a query using parameters to capture a range of date, the date is...
1
by: Sunil Korah | last post by:
Hi, My table contains a date field "DateOfVisit" and I have the following query SELECT Patients.PID, Patients.Lastname, Patients.FirstName, Patients.DateOfVisit, Patients.ToReport FROM...
12
by: Steve Elliott | last post by:
I have a query set up to gather together data between two specified dates. Shown in the query column as: Between #24/09/2004# And #01/10/2004# Is it possible to enter several different date...
2
by: Julie Wardlow | last post by:
Help! I am calculating a future date using the DateAdd function in a query (the calculation also involves an IIf statement), and have managed to get this formula to produce the required result....
13
by: Jim Armstrong | last post by:
Hi all - This problem has been driving me crazy, and I'm hoping the answer is something stupid I am neglecting to see.... The procedure posted below is part of an Access/SQL database I have...
10
by: Daniel | last post by:
In Microsoft Access I can write a query that includes the criteria: Between Date()-7 And Date() to retrieve the records from a table that fall within the last week. I'm trying to write a...
0
by: jans78 | last post by:
Appreciate if you all can help me to solve my Crystal Report problems First, I create some parameters and one of the parameters is Date. I set the parameter for the date is String. For example :...
8
by: Dr Al | last post by:
I have a table with four date fields, some of which may not be filled in based on our data entry needs. I have a criteria set as <date()-180 which is supposed to pull dates older than 180 days ago....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.