Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

simple date/time parameter problem DW 8.02

New Here ,
Sep 20, 2006 Sep 20, 2006

Copy link to clipboard

Copied

I used to be able to do this, but now I haven't a clue. I am trying to get a simple search on a date field, using a form field on a previous page to pass the date to the results page. The SQL is

SELECT *
FROM gongwernews
WHERE DateEntered = MMColParam

The parameter section in the Advanced Recordset box shows

Name: MMColParam
Type: Date
Value: Request.Form("DateEntered")
Default Value: 01/01/2006

When I click the test button I get the error

[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression

When I got that in MX04 I put the hashes around the #MMColParam# and all was well. Now when I do that I get the additional information in the error message

Syntax error in date in query expression 'DateEntered = #"'01/01/2006'"#'.

Note the three quote marks. Where did they come from? How do I do this in 8.02? I've searched the forum and technotes but I don't seem to find what I need.

Thanks in Advance,
Bill Cunningham
TOPICS
Server side applications

Views

378
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2006 Oct 16, 2006

Copy link to clipboard

Copied

Hi..

I'm with you.. I am experiencing the exact same issue.. Does anyone have a clue here how to get this resolved?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Oct 16, 2006 Oct 16, 2006

Copy link to clipboard

Copied

I notice the mismatch errror you are getting. Try to change the data type in the database itself . That should resolve this error.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 18, 2006 Oct 18, 2006

Copy link to clipboard

Copied

That's the first thing I looked at actually. It's a MS Access Date/Time field. It should just work, but it does not.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 27, 2006 Oct 27, 2006

Copy link to clipboard

Copied

Anyone solved this ????

GOD I HAVE DREAMWEAVER 8.02. ANY CHANCE THEY QWILL RELEASE A DOWNGRADE SOON.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 27, 2006 Oct 27, 2006

Copy link to clipboard

Copied

LATEST
Anyone solved this ????

GOD I HAVE DREAMWEAVER 8.02. ANY CHANCE THEY WILL RELEASE A DOWNGRADE SOON.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines