Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date formula help

Status
Not open for further replies.
May 26, 2001
15
0
0
US
I am developing a web report and the below formula generates an error. Can anyone provide the correct syntax>

Session("SelectionFormula") = "DateDiff(" & chr(34) & "d" & chr(34) & " , {debtors.Response14}, " & DATE & ") > 0"

The debtors.Response14 field is an Access 2000 database field.
 
To clarify the DATE needs to be a variable. What is the format for the date?
 
Try something like:

Session("SelectionFormula")= date & "> {debtors.Response14}"

Though you may have to convert the date to a string.

Even if we got yours working, it wouldn't pass the selection criteria along to the database.

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top