I am trying to select date from my table on the sql-server. I am using a string for de datevalue.
The following code is working:
strDatum= "SELECT * FROM data WHERE (datum > convert(datetime,'12-10-2001'))"
The problem is that i have to use a string instead of '12-10-2001'.
dim Datum1
datum1 = request("datum"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
the following selectstatement is not working;
strDatum = "SELECT * FROM data WHERE (datum > convert(datetime, datum1))"
What am i doing wrong?
Can annybody help me?
The following code is working:
strDatum= "SELECT * FROM data WHERE (datum > convert(datetime,'12-10-2001'))"
The problem is that i have to use a string instead of '12-10-2001'.
dim Datum1
datum1 = request("datum"
the following selectstatement is not working;
strDatum = "SELECT * FROM data WHERE (datum > convert(datetime, datum1))"
What am i doing wrong?
Can annybody help me?