I am designing a page in ASP and using MSSQL for the database. I want to use an if statement saying that if the field is empty, display something, else display something else.
However when i write:
Expand|Select|Wrap|Line Numbers
- If rsBoxEdit.Fields.Item("bFinishTime").Value = "" Then
- response.write("Edit Finish Time")
- Else
- response.write("Finish Time Already has a Value")
- End If
The database saud the field is <NULL> if this helps and the field type is set to datetime.
Also if i put
Expand|Select|Wrap|Line Numbers
- If rsBoxEdit.Fields.Item("bFinishTime").Value <> "" Then
- response.write("Edit Finish Time")
- Else
- response.write("Finish Time Already has a Value")
- End If
If someone could help that would be great. Anymore questions on the error please post them up.
Thanks,
Ross