473,763 Members | 7,727 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Preventing users from Switching Forms AccXP

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
4 1891
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
rkc

"Baz'noid" <ba***@rtd.uk.. com> wrote in message
news:bo******** **@hercules.bti nternet.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
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
Thanks all,

Much appreciated - works a treat!!

Cheers again,

Barry
Nov 12 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4617
by: Bruce | last post by:
I have a number of forms that do significant work based on variables POSTed from the form. What is the common method of detecting and preventing this work from being done when the form is POSTed as the result of the user clicking the Back or Reload buttons in the browser? --Bruce
1
3521
by: ano1optimist | last post by:
We've got users sharing a database where the front end apps reside on the local PC while the backend app is on the network. We have repeated problems where certain users lock the database causing other users to get the Run-time error , currently locked by user 'admin' on machine 'xyz' when trying to log into the database. The users have a "/runtime" command on the property of their desktop. Can you clarify how the runtime works? My...
2
2402
by: Johann Blake | last post by:
The following is a bug I have discovered using tab pages and threads and I am looking for a workaround. Create a new Windows Forms application and add a tab control with two tab pages. Add a label to each tab page. On the first tab page add a button. When the button is pressed the code behind the button creates a thread and starts that thread. The only thing that the thread is to do is to switch from the first tab page to the 2nd tab...
5
5291
by: fbwhite | last post by:
I know this issue has been brought up many times, but I have tried many of the solutions to no avail. I wanted to give my specific case to see if someone could be of any help. We are using the sessionstate inproc mode and users are randomly losing their session. I do not believe it is happening across all users at one time. It seems to happen to different users at different times, but I am only going off heresay. The aspnet worker...
10
4517
by: et | last post by:
I have an asp.net program that uses a connection string, using integrated security to connect to a sql database. It runs fine on one server, but the other server gives me the error that "Login failed for user "NT AUTHORITY/ANONYMOUS LOGON". Why would this be? There is no reason it should even be trying to login to using NT Authority/Anonymous login. The IIS Server is set to turn off anonymous logins, and use integrated security, and my...
3
4386
by: Simon Verona | last post by:
I have a parent form which contains a toolbar. The toolbar controls the loading and switching to of MDI child forms. The code for the toolbar click event and one of the subroutines that loads and shows a child form is: Private Sub tbMenu_ButtonClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ToolBarButtonClickEventArgs) Handles tbMenu.ButtonClick Dim btn As System.Windows.Forms.ToolBarButton For Each btn In...
9
4666
by: christinamasalha | last post by:
Hello all, I am wondering if anybody can help me with a question I have. I am planning to create an Access database application, this application will be used to keep simple records and stored locally on the users computer. What I want to do is the following: 1- When the user opens the application I want only a form to open, and from this form all the other forms may be accessible. 2- I don’t want the user to be able to even see that there...
1
978
by: gomzi | last post by:
hi, Is there any way for preventing the users from entering html code in the form fields? thanks, gomzi.
8
13256
by: mark_aok | last post by:
Hi all, I have a split database. Both the forms, and the tables are stored on a shared network drive (this is Access 2003). The users use the forms, and the tables on the network drive, there are no local copies. When connection to this drive is lost, Access CRASHES. It does it every single time. Does anyone know if there is a way to check if
0
9997
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9937
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9822
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8821
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2793
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.