By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 2,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

Preventing users from Switching Forms AccXP

P: n/a
Hi all,

As the size of my database and the number of users grows, i've found a
horrible bug in the system with a very simple solution (but i don't know how
to implement it)...

If two people are accessing the database simultaneously (literally at the
same time), things slow down a little. No problem. The problem becomes if
one user switches from one form to another from a customer's record (in this
case, having the details open as the main form, and payments form, order
detail form) and edits it. If someone else is editing a record at the same
time, access instantly confuses itself and corrupts the data in the field
trying to be edited.

This has caused unbelievable problems, especially since we lost over 200
customer records as a result at one point!!! I have figured out the
solution is to ensure each user can only have two forms open at a time, and
being forced to close the form they are leaving when going to another one,
thus ensuring the data is saved correctly.

For example:

Orders by Customer form open (always is)
Order Details form open

User finishes entering data on the order details form, and wants to open the
Payments form. I want to force the user to close the order details form
before allowing the payments form to open.

Any suggestions on the coding to do this?

Thanks,

Barry W
Nov 12 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Mon, 3 Nov 2003 16:11:19 +0000 (UTC), "Baz'noid"
<ba***@rtd.uk..com> wrote:
Hi all,

As the size of my database and the number of users grows, i've found a
horrible bug in the system with a very simple solution (but i don't know how
to implement it)...

If two people are accessing the database simultaneously (literally at the
same time), things slow down a little. No problem. The problem becomes if
one user switches from one form to another from a customer's record (in this
case, having the details open as the main form, and payments form, order
detail form) and edits it. If someone else is editing a record at the same
time, access instantly confuses itself and corrupts the data in the field
trying to be edited.

This has caused unbelievable problems, especially since we lost over 200
customer records as a result at one point!!! I have figured out the
solution is to ensure each user can only have two forms open at a time, and
being forced to close the form they are leaving when going to another one,
thus ensuring the data is saved correctly.

For example:

Orders by Customer form open (always is)
Order Details form open

User finishes entering data on the order details form, and wants to open the
Payments form. I want to force the user to close the order details form
before allowing the payments form to open.

Any suggestions on the coding to do this?


Ooh, you need to split this into frontend and backend - the frontend
for the code and the backend for the data. There is even a wizard for
this if you need.

That should deal with all of the issues you mention.

- Jim
Nov 12 '05 #2

P: n/a
rkc

"Baz'noid" <ba***@rtd.uk..com> wrote in message
news:bo**********@hercules.btinternet.com...

<snip>
User finishes entering data on the order details form, and wants to open the Payments form. I want to force the user to close the order details form
before allowing the payments form to open.

Any suggestions on the coding to do this?


Set the form's modal property to true?
Nov 12 '05 #3

P: n/a
Just make your forms model. (it is a setting in the other tab). Use of
"model" forms is for exactly what you need. (i.e.: you must close the
current form to return to previous forms). I would say that about 98% of my
forms are model.
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
No************@msn.com
http://www.attcanada.net/~kallal.msn
Nov 12 '05 #4

P: n/a
Thanks all,

Much appreciated - works a treat!!

Cheers again,

Barry
Nov 12 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.