This topic is locked

Clearing data in field on edit page to force re-entry

1/31/2007 6:27:55 PM
ASPRunnerPro General questions
M
mfred author

I am wanting to clear a specific field on the edit page for a record so that that field goes blank and a person has to re-enter data into that field. Please advise how to blank out the field.
TIA

J
Jane 2/1/2007

Hi,
you can do it using EditOnLoad event on the Events tab.

Here is a sample code:

Sub EditOnLoad()

str = "update " & strTableName & " set FieldName='' where " & where

dbConnection.Execute str
End Sub