Hello,
I need to clear the entries on the screen if a certain condition exists so that it never is updated in the database. Below is my update function and is where I am trying to make this happen. I need to make sure that the user doesn't use more than 10 points or less than 10 points such as a negative number. I need to reset the screen after the Update button is pressed but before anything is actually updated in the database. Any help is greatly appreciated.
Thank you in advance,
acewilli
I need to clear the entries on the screen if a certain condition exists so that it never is updated in the database. Below is my update function and is where I am trying to make this happen. I need to make sure that the user doesn't use more than 10 points or less than 10 points such as a negative number. I need to reset the screen after the Update button is pressed but before anything is actually updated in the database. Any help is greatly appreciated.
Code:
If Request.Form("submit") = "Update" Then
While not rsStatus.eof
If rsStatus("npoints") > "10" Then
[COLOR=red]'need to clear entries here based on condition above
'and refresh the screen[/color]
elseif rsStatus("npoints") < "10" Then
[COLOR=red]'need to clear entries here based on condition above
'and refresh the screen[/color]
else
end if
'code continues here
Thank you in advance,
acewilli