I format the ShipDate to Format([ShipDate], "Short Date") in a query, that
is alright, the problem is that no matter I choose ascend or descend, I just
cannot make the ShipDate in any order, it is for example like this:
15.09.2003
05.10.2004
15.10.2004
15.09.2004
.....
strangely, the last date "15.09.2004" should be between the first and the
third dates...
thanks in advance
Paul 2 1500
If this is in the query design interface, do not use Format(). Format()
returns a string, not a date.
If you are including the literal date in a string (such as a SQL statement,
3rd argument of DLookUp(), the WhereCondition of OpenReport, or the Filter
of a form), the you must format the date as mm/dd/yyyy and delimit with #.
Try:
Format([ShipDate], "\#mm\/dd\/yyyy\#)
More information:
International Date Formats in Access
at: http://members.iinet.net.au/~allenbrowne/ser-36.html
--
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.
"Paul T. Rong" <et***@hotmail.com> wrote in message
news:rh******************@news.chello.at... I format the ShipDate to Format([ShipDate], "Short Date") in a query, that is alright, the problem is that no matter I choose ascend or descend, I just cannot make the ShipDate in any order, it is for example like this:
15.09.2003 05.10.2004 15.10.2004 15.09.2004 ....
strangely, the last date "15.09.2004" should be between the first and the third dates...
Allen,
Thanks for your help and the website you recommended. The problem is solved.
Paul
"Allen Browne" <Al*********@SeeSig.Invalid> дÈëÏûÏ¢ÐÂÎÅ
:41***********************@per-qv1-newsreader-01.iinet.net.au... If this is in the query design interface, do not use Format(). Format() returns a string, not a date.
If you are including the literal date in a string (such as a SQL
statement, 3rd argument of DLookUp(), the WhereCondition of OpenReport, or the Filter of a form), the you must format the date as mm/dd/yyyy and delimit with #. Try: Format([ShipDate], "\#mm\/dd\/yyyy\#)
More information: International Date Formats in Access at: http://members.iinet.net.au/~allenbrowne/ser-36.html
-- 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.
"Paul T. Rong" <et***@hotmail.com> wrote in message news:rh******************@news.chello.at...I format the ShipDate to Format([ShipDate], "Short Date") in a query,
that is alright, the problem is that no matter I choose ascend or descend, I just cannot make the ShipDate in any order, it is for example like this:
15.09.2003 05.10.2004 15.10.2004 15.09.2004 ....
strangely, the last date "15.09.2004" should be between the first and
the third dates...
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mark |
last post by:
(Using Oracle 8)
I have 4 tables, which I describe below: CUSTOMERS, BOOKS, ORDERS,
ORDERITEMS. These should be pretty self-explanatory, although in case you're
wondering ORDERITEMS constitutes...
|
by: Ryan Wagner |
last post by:
I am doing many SQL insert statements to insert records into an oracle
database. I need the order of the records, after inserting all records, to
be the same as the order I inserted them in. Right...
|
by: B. Fongo |
last post by:
I learned MySQL last year without putting it into action; that is why
I face trouble in formulating my queries. Were it a test, then you
would have passed it, because your queries did help me...
|
by: Mike |
last post by:
Hey guys I am pulling my hair out on this problem!!!!! Any help or ideas or
comments on how to make this work I would be grateful! I have been working
on this for the past 4 days and nothing I do...
|
by: Glenn Profitt |
last post by:
Hi,
I am using a text box as the subject for an invoice email.
The textbox works fine for listing individual fields from the
tblOrders table as shown below:
="Hi, " & & "
" & "Your order is...
|
by: MJC |
last post by:
Hi all,
I have inheireted a database with no primary key and need to determine
the order in which the records were entered. The table in question
contains assessments and they are linked to an...
|
by: karizmatrix22 |
last post by:
Hi,
I need a programmer who can write 3 programs for following questions below.Programs need to be ready before nextweek.thank you. Person who help me these 3 questions will be get paid.. I am...
|
by: regul8or |
last post by:
I need a help with the following problem:
There's 2 tables tbla(primary, foreign, data) and tblb(primary, order)
with data like this:
tbla
'company 1', 1000, 'New York'
'company 1', 1001,...
|
by: Kesavan Muthuvel |
last post by:
Hi all.,
This is Kesavan.M from India..,
Here I have a table with upto 12 lac records. And I need a query in MS-
Access to SELECT records between 50001-250000 ie Record # 50,000 to
Record...
|
by: blakerrr |
last post by:
Hi everyone,
I have a form called Master Order with a subform in it called Order Info. The subform has a nested subform in it called Order Details. Master Order cycles through all of the parts...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
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$) {
}
...
|
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...
|
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: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
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,...
| |