Hi All
I have a Form where student fill out to express and interest in studying with our organisation. This foprm records their local IP address using the LOCAL_ADDR server variable.
I then have a select query on the page where it selects the records based on a session variable of the LOCAL_ADDR Server Variable.
The idea being, if the prospective student has been to this page before, it will display a form with their details already in it and the form will just update the database. If the prospective student has not been to this page, then a blank form will appear and a new record is added to the database.
The problem lies with the new student, seeing as their IP Address will not show up in the database, the Select query will not turn up any records. I want to use this "NULL" value to bring up the blank form. The code looks like this:
No matter what I try, I still end up the the BOF or EOF error.
My question is how can I deal with the NULL value to get the correct form to appear?
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
I have a Form where student fill out to express and interest in studying with our organisation. This foprm records their local IP address using the LOCAL_ADDR server variable.
I then have a select query on the page where it selects the records based on a session variable of the LOCAL_ADDR Server Variable.
The idea being, if the prospective student has been to this page before, it will display a form with their details already in it and the form will just update the database. If the prospective student has not been to this page, then a blank form will appear and a new record is added to the database.
The problem lies with the new student, seeing as their IP Address will not show up in the database, the Select query will not turn up any records. I want to use this "NULL" value to bring up the blank form. The code looks like this:
Code:
<% IF CollInt.Fields.Item("Name").value & " " <> "" Then%>
<FORM DETAIL HERE TO UPDATE RECORDS>
<%Else%>
<BLANK FORM HERE>
<% End IF%>
My question is how can I deal with the NULL value to get the correct form to appear?
-------------------------------------------------------------
"The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."