Well, not a lot to work with here;
+ The very first place I would work with is your IT-dept, make sure that your users have a true connection to the database and not an image, or a heavily buffered VPN, etc...
++ You point out that you had no issues, I am guessing that you logged on to the network under your user profile, this leads me to a similar issue I've had in the past! Double check with IT that your users have at least read/write/modify permissions to the folder. They need to be able to read the file, write new files, and modify the existing file structure -
in that folder/directory.
As I mentioned, I've had occasion where I've had read and write permissions and was able to open and use the database only to have the data revert... weird, no explanation why, My IT-Guru didn't "get it" either; however, adding Modify to the privileges fixed the issue.
+ Next, have your problem user(s) enter a few records.
Typically there will be a "pencil" icon on the record while it is being edited.
BEFORE THE USER CLICKS or changes the focus from the current record to ANYWHERE ELSE on the form - the record needs to be in edit mode - have the user press <ctrl><s>. This explicitly saves the currently edited record.
close and reopen the database - see if the data stays.
+ Change your "save and close" button to:
- If Me.Dirty Then
-
Me.Dirty = False
-
End If
-
docmd.Close _
-
objecttype:=acForm,objectname:=me.name, _
-
save:=acSaveNo
The
save:=acSaveNo
will prevent any changes your user may have made to the form from being saved to the DESIGN.
Most of my forms, especially subforms, I have just the IF-Then in the on_close event
- If Me.Dirty Then Me.Dirty = False
notice just the one command thus no need for the
end if
. This helps ensure that any open records are flushed.
+ You might want to take a look at Allen's info on this too
Allen Browne: Losing data when you close a form