Hi!
i have an access database where users use a form to input data into the DB.
when a user insert a new record after some validation the code i use to move to the new record is:
DoCmd.GoToRecord , , acNewRec
this works fine whith a single user, but when more users start to use the same form, the DB gets unstable and crashes many times during the day, where the user has to restart the bd.
i replaced the code above with this:
DoCmd.Close
DoCmd.OpenForm "formname", , , stLinkCriteria
And the DB never crashed again no metter the number of user that are loged on.
the only problem is that when i use
DoCmd.Close
DoCmd.OpenForm
insted of
DoCmd.GoToRecord , , acNewRec
the form reopens in the center of the screen, and i wish that it stayed in the same place when users add new records.
one other thing i might add is that the table has a id value that is set to autonumber.
any ideas why the DB is not stable with DoCmd.GoToRecord , , acNewRec?
i have an access database where users use a form to input data into the DB.
when a user insert a new record after some validation the code i use to move to the new record is:
DoCmd.GoToRecord , , acNewRec
this works fine whith a single user, but when more users start to use the same form, the DB gets unstable and crashes many times during the day, where the user has to restart the bd.
i replaced the code above with this:
DoCmd.Close
DoCmd.OpenForm "formname", , , stLinkCriteria
And the DB never crashed again no metter the number of user that are loged on.
the only problem is that when i use
DoCmd.Close
DoCmd.OpenForm
insted of
DoCmd.GoToRecord , , acNewRec
the form reopens in the center of the screen, and i wish that it stayed in the same place when users add new records.
one other thing i might add is that the table has a id value that is set to autonumber.
any ideas why the DB is not stable with DoCmd.GoToRecord , , acNewRec?