Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I Let numeric field = null

Status
Not open for further replies.

joshs1100

IS-IT--Management
Jan 24, 2002
23
US
I am trying to use code to remove a value entered into a numeric field on a form. When I use "Let Fieldname = Null" I get run-time error '3162'. If I use "Let Fieldname = Empty" it puts a '0' in the field.
I want the field to be equal to the same thing it is when you press delete on the field, which it does allow with no error.

Thanks in advance for any help.
 
I just checked and vbNull will not work. What did seem to work is to set the [fields(?)) = ""
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top