Clear form for next record (MS Access 2007) (1 Viewer)

pwalter83

Registered User.
Local time
Today, 08:59
Joined
Dec 19, 2011
Messages
31
Hi,

I have created a form which uses both textboxes and a combobox. What I wish to achieve is that once the user has entered a data and clicked on save button, the previous entered data should clear out from all the textboxes and the combobox.

I have tried everything but it does not seem to work. Even the command below does not work:

DoCmd.GoToRecord , , acNewRec or

Any suggestions would be appreciated. Please also find the form attached. The name of the form is Register Vessel.

Thanks,
Paul
 

Attachments

  • VESSDAT_NEW.zip
    122.3 KB · Views: 122

missinglinq

AWF VIP
Local time
Today, 11:59
Joined
Jun 20, 2003
Messages
6,420
Is this Form in question Bound to a Table or Query?

Linq ;0)>
 

NickHa

CITP
Local time
Today, 16:59
Joined
Jan 29, 2012
Messages
203
From what I can see of your code, it appears that you are working against the principles of bound forms. Your Add_Record_Click event is using SQL INSERT to add the form data to the table to which the form is bound, which is not necessary. There is no need for any DoCmd functions in your application in this context. I can't see the full context because your DB is upsetting my PC. I noticed that one of your form fields is unbound, so anything entered into that will be lost.
 

Users who are viewing this thread

Top Bottom