Oct 21, 2002 #1 tyleri Programmer Jan 2, 2001 173 US I want the asp code to only display dates including the current date and any future dates. how can I eliminate any expired dates? here is what i have to work with now: Set rstSimple = cnnSimple.Execute("SELECT * FROM shows"
I want the asp code to only display dates including the current date and any future dates. how can I eliminate any expired dates? here is what i have to work with now: Set rstSimple = cnnSimple.Execute("SELECT * FROM shows"
Oct 21, 2002 #2 rac2 Programmer Apr 26, 2001 1,871 US Dim dateToday dateToday = Date Set rstSimple = cnnSimple.Execute("SELECT * FROM shows WHERE date >=" & dateToday ) Depending on the database you may need to convert dateToday to a string and add quote marks or # around the string. . . . WHERE date >=#" & CStr(dateToday) & "#" . . . or . . . WHERE date >='" & CStr(dateToday) & "'" . . . Upvote 0 Downvote
Dim dateToday dateToday = Date Set rstSimple = cnnSimple.Execute("SELECT * FROM shows WHERE date >=" & dateToday ) Depending on the database you may need to convert dateToday to a string and add quote marks or # around the string. . . . WHERE date >=#" & CStr(dateToday) & "#" . . . or . . . WHERE date >='" & CStr(dateToday) & "'" . . .