View Full Version : clearing data entry form


mghdb
02-01-2001, 06:09 AM
Hello -
I have a form that is used for data entry into a table. I would like to have the the text boxes and combo boxes clear once the user clicks on the "Submit" button. What I have now doesn't work. When a user goes into the form, the last entry is displayed. Can anyone help me in figuring this out. Thanks in advance.

Chris RR
02-01-2001, 08:01 AM
This is just off the top of my head, but I think that, in the code behind your "submit" button, add something like this (after you've done all your other processing):

' change Field1 and cboField2 as needed...
me.Field1 = Null
me.cboField2 = Null
me.requery

mghdb
02-01-2001, 10:39 AM
thanks for you quick reply...i'll will give that a try.

novabill
02-01-2001, 10:55 AM
Thats easy, just create a macro with the first action opening your form and the next action a "go to record" and in the gotorecord action arguments Record line chose "new". This will cause your form to start with a new fresh blank record every time the user goes to the form to enter new data