Results 1 to 12 of 12
  1. #1
    wrkadri is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2012
    Posts
    29

    Multi-Select dropdown problem

    Hi,



    I have a database that keeps track of non-profit items distributions.
    Usually distributions are done by one ore more field officers.
    My database is split because I have two data entry officers working on it.
    I have created a combo box that allows them to choose one or more field officers from an already existing table.
    When they want to enter the data, they cannot do it in the same time because one of them is locking the record.

    The error that they receive is: Could not update; currently locked by user 'Username' on machine 'Machine name'

    Any solution?

    Thank you in advance

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,525
    Don't Edit the record directly.
    have a user click edit button, this copies the record to local table,
    changes are made, click SAVE...
    this updates all fields to the REAL record on server...thus, no one is EVER in the record.

  3. #3
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Why would users be editing same record at same time? Are they editing the same fields? They will overwrite each other. Whose data is correct?
    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
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Maybe the Default record locking is set to "All Records" instead of "no Locks"??

  5. #5
    wrkadri is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2012
    Posts
    29
    Quote Originally Posted by June7 View Post
    Why would users be editing same record at same time? Are they editing the same fields? They will overwrite each other. Whose data is correct?
    They are not editing the same record. They are using linked table.
    The case is that I am tracking the distributions.. The distributions table is linked to the field officers who made the distribution.. Whenever the data entry officers want to select who did the distribution, they get this error message.

    Quote Originally Posted by ssanfu View Post
    Maybe the Default record locking is set to "All Records" instead of "no Locks"??
    The default record locking is set to "No locks"

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Makes no sense to me that selecting item from combobox would lock some record. I suspect the form's RecordSource is not properly structured and/or combobox is bound to wrong field. Normally, a form can do data entry/edit for only one table. If you have multiple tables in the form's RecordSource, that could be an issue.

    I have a split, multi-user database and NEVER seen this issue with a combo or list box.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  7. #7
    wrkadri is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2012
    Posts
    29
    Quote Originally Posted by June7 View Post
    Makes no sense to me that selecting item from combobox would lock some record. I suspect the form's RecordSource is not properly structured and/or combobox is bound to wrong field. Normally, a form can do data entry/edit for only one table. If you have multiple tables in the form's RecordSource, that could be an issue.

    I have a split, multi-user database and NEVER seen this issue with a combo or list box.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    Maybe I didn't explain it well.. Maybe the structure of my database is not correct.. I will try to be more clear and provide screenshots as soon as I reach the office. Thank you all for your support.

  8. #8
    wrkadri is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2012
    Posts
    29
    To be more clear with the problem I am facing, I am posting screenshots of the whole process:

    Click image for larger version. 

Name:	Form.png 
Views:	15 
Size:	12.5 KB 
ID:	21150
    This is the form in design view..

    Click image for larger version. 

Name:	Multi-Select.png 
Views:	15 
Size:	8.8 KB 
ID:	21151
    I need to select the field officer who did the distribution..

    Click image for larger version. 

Name:	Error.png 
Views:	15 
Size:	4.7 KB 
ID:	21152
    If someone else is also adding another distribution, I get this error !!!

    Click image for larger version. 

Name:	Row Source.png 
Views:	15 
Size:	22.2 KB 
ID:	21153
    Knowing that this is my row source..

    I am not sure if the problem is in the dropdown list itself or in the form frmDistributionsFU

  9. #9
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You are saving name instead of ID? Names are poor unique identifiers. However, if you are positive there will never be more than one officer for same name, guess this will do.

    I NEVER use multi-value field.

    Still don't understand cause of record lock.
    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.

  10. #10
    wrkadri is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2012
    Posts
    29
    Quote Originally Posted by June7 View Post
    You are saving name instead of ID? Names are poor unique identifiers. However, if you are positive there will never be more than one officer for same name, guess this will do.

    I NEVER use multi-value field.

    Still don't understand cause of record lock.
    I will remove the multi-value field.. It is giving me a headache for a while! LOL

    Thank you for your support

  11. #11
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    So what are you going to do if multi-value field is removed - a related table?

    How did you resolve issue of record locking?
    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.

  12. #12
    wrkadri is offline Novice
    Windows 8 Access 2013
    Join Date
    Dec 2012
    Posts
    29
    Quote Originally Posted by June7 View Post
    So what are you going to do if multi-value field is removed - a related table?

    How did you resolve issue of record locking?
    I created a related table that will hold the names of the officers responsible for each distribution.
    It is working fine now.

    Thanks

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

Similar Threads

  1. Replies: 1
    Last Post: 03-05-2013, 06:53 PM
  2. Combobox Dropdown Problem
    By ssashraf in forum Access
    Replies: 3
    Last Post: 12-08-2012, 11:36 PM
  3. Replies: 6
    Last Post: 08-15-2012, 04:05 PM
  4. Replies: 5
    Last Post: 07-26-2012, 12:59 PM
  5. Replies: 2
    Last Post: 03-27-2012, 01:02 PM

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