Results 1 to 9 of 9
  1. #1
    Luciano is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Location
    Belgium
    Posts
    22

    Drop Changes

    Hi, I really don't know if my message passed a few hours ago, that's the reason I repeat my question.


    I have a splitted and bound multi-user front-end back-end Access database. In the options in my back-end database, I choosed 'Default record locking: Edited record'. In my Front-end, I'm working as much as possible with ADO-Recordsets to update my tables. I uselly open adOpenDynamic and adLockOptimistic. It happens, when two front-end users are editing in a form a field in the same record, that the 'slowest' user get the message 'Save Record/Copy to Clipboard/Drop Changes'. In my appllication, this user MUST choose 'Drop Changes' (something like .Undo and Cancel in BeforeUpdate). Sometimes however, the user choose 'Save Record' (with dramatic consequenses). Is it possible to force the user to make the good choose (Drop Changes), or to suppress this message by another (something like msgbox "Update didn't work out, because of an other user")?

  2. #2
    PATRICK is offline Advanced Beginner
    Windows 8 Access 2010 64bit
    Join Date
    Apr 2011
    Posts
    32
    Luciano, are you working with unbound fields into your form? looks like not... it could be a good option to update record where you can update certain record using ID number and SQL Update statement.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    What is it about your business process that multiple users would need to edit the same record at the same time? This has happened maybe twice in the 6 years my db has been deployed. Our process makes that occurrence extremely rare.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  4. #4
    Luciano is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Location
    Belgium
    Posts
    22
    It's true that it's very rare that multiple users are editing the same record; but it happens quit frequently that the code behind this updated records is updating the same record in another tabel.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    Code is updating a record that a user is also trying to edit? That is so unlikely in my db I don't even worry about it. Again, your business processes seem to be the real issue and/or the db design.

    Access was not intended to be a multi-user database. It was designed for personal use. It does function for multiple users but doesn't handle well the circumstances you describe. It's my understanding that databases like Oracle or SQLServer are better suited.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  6. #6
    Luciano is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Location
    Belgium
    Posts
    22
    Indead, when 2 (or more) users are updating different records in table1, it is necessary that the code behind is updating occasionally (depending of some parameters) the same record in table2. It is at that very moment, the Error occurs.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    I still don't understand why editing table1 records would cause simultaneous edits to a table2 record.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  8. #8
    Luciano is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2011
    Location
    Belgium
    Posts
    22
    I have tblReservations with reservations (with a field = number of passengers) for a balloonflight (in tblFlights) with a field = sum passengers in the several reservations) in a hot air balloon. A balloonflight can have several reservations. Two (or more) reservations of the same flight can change their number of passengers or/and new reservations can be added to the same balloonflight (this happens occasionally).

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,643
    The sum passengers should not be saved to table. This should be calculated when needed. AFAIK, that will be the only resolution to your issue - don't save aggregate data, calculate it.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Form Drop down box
    By nyneave in forum Forms
    Replies: 1
    Last Post: 10-16-2012, 03:02 PM
  2. Drop Down List
    By haazzaa in forum Forms
    Replies: 3
    Last Post: 03-19-2012, 05:17 PM
  3. Replies: 3
    Last Post: 12-30-2011, 01:20 PM
  4. Replies: 3
    Last Post: 11-29-2011, 07:01 AM
  5. drop down list
    By tceicher in forum Access
    Replies: 5
    Last Post: 08-13-2009, 05:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums