Here's what I want to do. I have a site where users login and update information about themselves. I have been trying to create a page that shows people who have updated say within the last three days only.
I have been trying to create this recordset using the ultradev dialog box, but I can't seem to get it right. In the database table, there is a field called DateUpdated which gets populated when the user logs in to update information. I am trying to use the DateDiff function to select the relevant information. My SQL query looks something like this...
SELECT username, DateUpdated
FROM tblPeople
WHERE timelapsed > 4
In the variable list-box I have
variable name: timeelapsed
default value: 1
Run-time value: DateDiff("d",Date(),DateUpdated)
When I test the recordset in Ultradev, it just selects all of the records. If I change the default value to 5 or anything > 4, it selects no records. So timeelapsed is getting populated with the default value.
I'm stuck. Any ideas?
I have been trying to create this recordset using the ultradev dialog box, but I can't seem to get it right. In the database table, there is a field called DateUpdated which gets populated when the user logs in to update information. I am trying to use the DateDiff function to select the relevant information. My SQL query looks something like this...
SELECT username, DateUpdated
FROM tblPeople
WHERE timelapsed > 4
In the variable list-box I have
variable name: timeelapsed
default value: 1
Run-time value: DateDiff("d",Date(),DateUpdated)
When I test the recordset in Ultradev, it just selects all of the records. If I change the default value to 5 or anything > 4, it selects no records. So timeelapsed is getting populated with the default value.
I'm stuck. Any ideas?