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

passing date criteria in url parameter

New Here ,
Jan 18, 2007 Jan 18, 2007

Copy link to clipboard

Copied

Hi,

I want to filter a recordset by a given date.
Create the recordset, if I use a runtime value of #27/11/06# all the records for that date are returned.
However, when I try to pass the same information through an URL Parameter it doesn't work.

Is there a problem with passing this info in that way?

Thanks, Mark.
TOPICS
Server side applications

Views

256
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

correct answers 1 Correct answer

LEGEND , Jan 18, 2007 Jan 18, 2007
No, should be absoloutely fine. The prob is most likely to do with your SQL
statement.

As a test, don't display any records. At the top of your page, try
outputting the completed SQL statement onto the page to see what it looks
like. The problem being you may need to add the # symbols manually. Should
look something like

"SELECT * FROM TableName WHERE DateField = #" & URLParameter & "#"

HTH,

Piers


Votes

Translate
LEGEND ,
Jan 18, 2007 Jan 18, 2007

Copy link to clipboard

Copied

No, should be absoloutely fine. The prob is most likely to do with your SQL
statement.

As a test, don't display any records. At the top of your page, try
outputting the completed SQL statement onto the page to see what it looks
like. The problem being you may need to add the # symbols manually. Should
look something like

"SELECT * FROM TableName WHERE DateField = #" & URLParameter & "#"

HTH,

Piers


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 ,
Jan 18, 2007 Jan 18, 2007

Copy link to clipboard

Copied

LATEST
that worked first time

i had a hunch it was those pesky #'s but i'm a touch slow

thanks a million

mark

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