PC Review Forums Newsgroups Microsoft Word Microsoft Frontpage Re: drw date problem

Reply

Re: drw date problem

 
Thread Tools Rate Thread
Old 14-07-2004, 08:58 PM   #1
Thomas A. Rowe
Guest
 
Posts: n/a
Default Re: drw date problem


You have to surround the date with #

Date = #::date::#
--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Hayden Greg" <HaydenGreg@discussions.microsoft.com> wrote in message
news:E63CE5DD-4496-4A7E-B022-7546BFC8B4EF@microsoft.com...
> Using DRW and Access I created a search page that will not work when I add the date as the search

criteria. The access field is set up as a short date 7/20/2004. Using DRW I tried a custom query
>
> SELECT * FROM LAB
> WHERE (DATE = ::date:
>
> On my search page when I place a date in my search field I get
> No Records Returned
>
> So, then I tried it without a custom query. In DRW I tried adding criteria under more options (

date = date). I got the following error when putting in a date on my search page.
> Data type mismatch in criteria expression.
> Number: -2147217913 (0x80040E07)
> Source: Microsoft JET Database Engine
>
> I would also like to create a search where you can put in a range of dates that looks at one field

in access.
>



  Reply With Quote
Old 20-07-2005, 03:21 AM   #2
=?Utf-8?B?QnJpYW4=?=
Guest
 
Posts: n/a
Default Re: drw date problem

I am having the same problem with Front Page 2003.

When I try your solution to surround the date with #
SELECT * FROM Events WHERE (Date_Submitted = #:ate_Submitted::#)

I get the following error

Server error: Unable to retrieve schema information from the query:

SELECT * FROM Events WHERE (Date_Submitted = #1#)

against a database using the connection string

DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=fpdb/BPR.mdb.

The following error message comes from the database driver software; it may
appear in a different language depending on how the driver is configured.
-------------------------------------------------------
[Microsoft][ODBC Microsoft Access Driver] Syntax error in date in query
expression '(Date_Submitted = #1#)'.

Source: Microsoft OLE DB Provider for ODBC Drivers
Number: -2147467259 (0x80004005)
"Thomas A. Rowe" wrote:

> You have to surround the date with #
>
> Date = #::date::#
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Hayden Greg" <HaydenGreg@discussions.microsoft.com> wrote in message
> news:E63CE5DD-4496-4A7E-B022-7546BFC8B4EF@microsoft.com...
> > Using DRW and Access I created a search page that will not work when I add the date as the search

> criteria. The access field is set up as a short date 7/20/2004. Using DRW I tried a custom query
> >
> > SELECT * FROM LAB
> > WHERE (DATE = ::date:
> >
> > On my search page when I place a date in my search field I get
> > No Records Returned
> >
> > So, then I tried it without a custom query. In DRW I tried adding criteria under more options (

> date = date). I got the following error when putting in a date on my search page.
> > Data type mismatch in criteria expression.
> > Number: -2147217913 (0x80040E07)
> > Source: Microsoft JET Database Engine
> >
> > I would also like to create a search where you can put in a range of dates that looks at one field

> in access.
> >

>
>
>

  Reply With Quote
Old 20-07-2005, 10:32 AM   #3
Kathleen Anderson [MVP - FrontPage]
Guest
 
Posts: n/a
Default Re: drw date problem

This:
http://support.microsoft.com/defaul...&Product=fp2002
should help.

--
~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
web: http://www.spiderwebwoman.com/resources/


"Brian" <Brian@discussions.microsoft.com> wrote in message
news:3D02FE96-D09C-466C-9A33-AA25874BA07A@microsoft.com...
>I am having the same problem with Front Page 2003.
>
> When I try your solution to surround the date with #
> SELECT * FROM Events WHERE (Date_Submitted = #:ate_Submitted::#)
>
> I get the following error
>
> Server error: Unable to retrieve schema information from the query:
>
> SELECT * FROM Events WHERE (Date_Submitted = #1#)
>
> against a database using the connection string
>
> DRIVER={Microsoft Access Driver (*.mdb)};DBQ=URL=fpdb/BPR.mdb.
>
> The following error message comes from the database driver software; it
> may
> appear in a different language depending on how the driver is configured.
> -------------------------------------------------------
> [Microsoft][ODBC Microsoft Access Driver] Syntax error in date in query
> expression '(Date_Submitted = #1#)'.
>
> Source: Microsoft OLE DB Provider for ODBC Drivers
> Number: -2147467259 (0x80004005)
> "Thomas A. Rowe" wrote:
>
>> You have to surround the date with #
>>
>> Date = #::date::#
>> --
>> ==============================================
>> Thomas A. Rowe (Microsoft MVP - FrontPage)
>> WEBMASTER Resources(tm)
>> http://www.ycoln-resources.com
>> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
>> ==============================================
>> To assist you in getting the best answers for FrontPage support see:
>> http://www.net-sites.com/sitebuilder/newsgroups.asp
>>
>> "Hayden Greg" <HaydenGreg@discussions.microsoft.com> wrote in message
>> news:E63CE5DD-4496-4A7E-B022-7546BFC8B4EF@microsoft.com...
>> > Using DRW and Access I created a search page that will not work when I
>> > add the date as the search

>> criteria. The access field is set up as a short date 7/20/2004. Using DRW
>> I tried a custom query
>> >
>> > SELECT * FROM LAB
>> > WHERE (DATE = ::date:
>> >
>> > On my search page when I place a date in my search field I get
>> > No Records Returned
>> >
>> > So, then I tried it without a custom query. In DRW I tried adding
>> > criteria under more options (

>> date = date). I got the following error when putting in a date on my
>> search page.
>> > Data type mismatch in criteria expression.
>> > Number: -2147217913 (0x80040E07)
>> > Source: Microsoft JET Database Engine
>> >
>> > I would also like to create a search where you can put in a range of
>> > dates that looks at one field

>> in access.
>> >

>>
>>
>>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off