Forms and Save buttons

G

Guest

I have a form that automatically saves without pressing the save button. If
the users close the form the data stays even though it wasn't physically
saved by my save button. Is there anyway to prevent this from automatically
saving?
 
G

Guest

The form has nothing to do with saving the record. The form is based on a
query or a table. The fields on the form are bound to that source. So when
entering data in a certain field the form(read "record") becomes dirty. When
the users reaches the last field and exits on that one the record is saved
(meaning the form, record is no longer dirty). This is standard
functionality. If you want to not save the record you'd have to base the form
on something else then the table or query. In some cases people use tmp
tables to write the records to and when closing the form the user is being
asked if he/she wants to save the records. When confirmed an append query
adds the records to the original table. But be aware that temp tables need to
be emptied when done and can take up very much space in your database.
Recommende practice is to place tmp-tables outside the original MDB.

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top