I am designing a small .asp (classic) application, I am connecting to
a Access 2k database via ADO to retrieve data. I have a number
variable's that contain text that is posted from a previous screen
AMPM = Request.Form("AMPM")
AMPMDate = Request.Form("AMPMDate")
halfday = "(" & AMPM & "," & AMPMDate & ")"
I then compose a CDOSYS email and send the value of the variable in
the .HTML body of the email
..HTML = "Number of Days" & halfday
What I would like to do is only display the value of the halfday
variable if it contains a value. I was thinking along the lines of
If halfday = Null Then
halfday = ""
Else
halfday = halfday
End if
I know this does not work, but it gives an idea of what I am trying to
achieve.
Any help would be appreciated.
Regards