0
New Here
,
/t5/dreamweaver-discussions/passing-date-criteria-in-url-parameter/td-p/677841
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.
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
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
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
LEGEND
,
/t5/dreamweaver-discussions/passing-date-criteria-in-url-parameter/m-p/677842#M186257
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
funkster-qv5H7D
AUTHOR
New Here
,
LATEST
/t5/dreamweaver-discussions/passing-date-criteria-in-url-parameter/m-p/677843#M186258
Jan 18, 2007
Jan 18, 2007
Copy link to clipboard
Copied
that worked first time
i had a hunch it was those pesky #'s but i'm a touch slow
thanks a million
mark
i had a hunch it was those pesky #'s but i'm a touch slow
thanks a million
mark
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

