No access required is dates delimited by #'s.  Had to use 

(((tbl_GENTracker.DateReceived) >=
###dateformat(form.sDate,'dd/mm/yyyy')###))

-----Original Message-----
From: Scott Barnes [mailto:[EMAIL PROTECTED] 
Sent: Thursday, 7 October 2004 3:43 PM
To: CFAussie Mailing List
Subject: [cfaussie] Re: Access Date formats

Sorry been awhile since i played in ACCES But..


SELEC *
FROM    mytable
WHERE   dateField > CreateODBCDateTime('10/10/2004')


Won't that work?

Scott


[EMAIL PROTECTED] wrote on 07/10/2004 02:56:39 PM:

> Brian, I coulda sworn I had an ex-QANTM tutorial up on the 'net
> detailing this but I'll be blowed if I can find it
> 
> instead, check out this post, esp the working CF+SQL code at the bottom
> (the guy must be using every datatype that MSAccess can do so you can
> see the context of use) - his issues had nothing to do with
> cfqueryparam.
> 
> http://www.houseoffusion.com/cf_lists/index.cfm/method=messages&threadid
> =30364&forumid=4 
> 
> one of the best things about cfqp's is that you'll never have to worry
> about delims again (esp if you have to slum it away from your SQLServer
> db's and use Access)
> 
> cheers
> barry.b
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of KNOTT,
> Brian
> Sent: Thursday, 7 October 2004 1:44 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: Access Date formats
> 
> Barry,
>    Most of the problem was me being an idiot.  I was referring to a
> field name that did not exist.  The where clause below works.
> 
> and (((tbl_GENTracker.DateReceived) >=
> ###dateformat(form.sDate,'dd/mm/yyyy')###))
> 
> I could not get cpqueryparam to work.  Do you have an examples of it
> working.
> 
> Brian
> 
> -----Original Message-----
> From: Barry Beattie [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 7 October 2004 12:44 PM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: Access Date formats
> 
> Brian: you might have grief with the delims: 
> 
> SQLServer date delims: '
> Jet/MSAccess date delims: #
> 
> which means 
> > Where receivedDate > ###10/1/2004###
> 
> YUCK! that's why I religiously used cfqueryparams (with no grief)
> 
> you might also have issues with dd/mm/yyyy vs mm/dd/yyyy since the
> internal JET db engine bypasses the MSAccess settings 
> 
> try these formats instead. the second is more correct but the first
> seems to work (from memory)
> 
> > Where receivedDate > #2004/1/10#
> or 
> > Where receivedDate > #2004-1-10#
> 
> 
> cheers
> barry.b
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of KNOTT,
> Brian
> Sent: Thursday, 7 October 2004 11:09 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: Access Date formats
> 
> I'm not having much luck with it.
> 
> -----Original Message-----
> From: Mark Mandel [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, 7 October 2004 11:01 AM
> To: CFAussie Mailing List
> Subject: [cfaussie] Re: Access Date formats
> 
> I take it you can't use <cfqueryparam> ?
> 
> Mark
> 
> 
> On Thu, 7 Oct 2004 10:44:58 +1000, KNOTT, Brian
> <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > 
> > Does anyone know the correct format for a select statement to query an
> > Access database based on a date 
> > 
> > 
> > 
> > i.e. 
> > 
> > 
> > 
> > Select * 
> > 
> > From table 
> > 
> > Where receivedDate > '10/1/2004' 
> > 
> > 
> > 
> > Brian 
> > 
> > 
> >
> ------------------------------------------------------------------------
> ----
> -------
> >  This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or
> one
> of
> > its related entities ("Suncorp"). 
> > 
> >  Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or
> on
> 13
> > 11 55 or at suncorp.com.au.
> > 
> >  The content of this e-mail is the view of the sender or stated author
> and
> > does not necessarily reflect the view of Suncorp. The content,
> including
> > attachments, is a confidential communication between Suncorp and the
> > intended recipient. If you are not the intended recipient, any use,
> > interference with, disclosure or copying of this e-mail, including
> > attachments, is unauthorised and expressly prohibited. If you have
> received
> > this e-mail in error please contact the sender immediately and delete
> the
> > e-mail and any attachments from your system.
> > 
> >  If this e-mail constitutes a commercial message of a type that you no
> > longer wish to receive please reply to this e-mail by typing
> Unsubscribe
> in
> > the subject line.
> >  ---
> >  You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> >  To unsubscribe send a blank email to
> > [EMAIL PROTECTED] Aussie Macromedia Developers:
> > http://lists.daemon.com.au/ 
> 
> 
> -- 
> E: [EMAIL PROTECTED]
> W: www.compoundtheory.com
> ICQ: 3094740
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to
> [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
> 
> 
> ---
> You are currently subscribed to cfaussie as: 
[EMAIL PROTECTED]
> To unsubscribe send a blank email to 
[EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/



To unsubscribe from this email please forward this email to:
[EMAIL PROTECTED]

If this communication is not intended for you and you are not an authorised
recipient of this email you are prohibited by law from
dealing with or relying on the email or any file attachments. This
prohibition includes reading, printing, copying, re-transmitting,
disseminating, storing or in any other way dealing or acting in reliance on
the information.  If you have received this email in 
error, we request you contact ABN AMRO Morgans Limited immediately by
returning the email to 
[EMAIL PROTECTED] and destroy the original. We will refund any
reasonable costs associated with notifying ABN 
AMRO Morgans. This email is confidential and may contain privileged client
information. ABN AMRO Morgans has taken 
reasonable steps to ensure the accuracy and integrity of all its
communications, including electronic communications, but
accepts no liability for materials transmitted. Materials may also be
transmitted without the knowledge of ABN AMRO Morgans.
ABN AMRO Morgans Limited its directors and employees do not accept liability
for the results of any actions taken or not
on the basis of the information in this report. ABN AMRO Morgans Limited and
its associates hold or may hold securities in
the companies/trusts mentioned herein.  Any recommendation is made on the
basis of our research of the investment and
may not suit the specific requirements of clients.  Assessments of
suitability to an individuals portfolio can only be made 
after an examination of the particular clients investments, financial
circumstances and requirements.
ABN AMRO Morgans Limited (ABN 49 010 669 726 AFSL 235410) A Participant of
ASX Group


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to