Results 1 to 9 of 9
  1. #1
    kpieksma is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2014
    Posts
    4

    Copying a record overrides combo box row source and limit to list

    I have a table that has a text field with a look up function that looks up and limits entry from a specific list in another table. It works fine if the user is entering data in the specific field through normal data entry process. However, If I try and copy in a record, the combo box or list box allows the entry even if it is not in the list (limit to list properties are on) Not understanding why Access allows that record to be entered without questioning the entry in the field that does not match the list...Consequently, a record is accepted into the table that may have incorrect data.



    Again, works great for data entry, does not work at all when copying a record to the table..Could use a little help...

  2. #2
    JeffChr is offline Advanced Beginner
    Windows 7 64bit Access 2010 32bit
    Join Date
    Feb 2014
    Posts
    82
    How are you copying-in in a record ?

  3. #3
    kpieksma is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2014
    Posts
    4
    From Excel..

  4. #4
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2003
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,544
    Not sure that answers the question of "how", just tells us where the data is.
    Are you using code?
    Are you using Copy/Paste?
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Copying in a record has nothing to do with selecting item from combobox list and since you aren't selecting item from list, the combobox RowSource is irrelevant.

    If you want to prevent duplicate values in table, that is entirely unrelated to the configuration of combobox RowSource.
    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
    kpieksma is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2014
    Posts
    4
    Quote Originally Posted by Bob Fitz View Post
    Not sure that answers the question of "how", just tells us where the data is.
    Are you using code?
    Are you using Copy/Paste?
    Simply copy and paste..

  7. #7
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Comments in post 5 still apply.

    This is why users should not work directly with tables and queries, only forms and reports. If allowed to work directly with tables and queries and do what they want, be aware of the consequences (bad data).
    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
    kpieksma is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Oct 2014
    Posts
    4
    I am trying to have users use the correct naming convention for a text list... The field in question is a text field that can be entered several different ways because of the use of hyphens and spaces...But only one is correct. For example, the correct spelling of a particular item is SHY084-5003. I have had users enter as SHY 084-5003, and also SHY-084-5003. Only the first is correct, and if not entered correctly, then correct reporting later on is not possible because Access is looking at and linking on the name. So I made a combo box or a field list that only allowed users to enter the correct name based on a master list that the look up refers to...The problem is, there are thousands of records added each year, and so entering one record at a time is unpractical. So I want to use a mass upload copy and paste from Excel, where the data is collected, but the combo box/list box does not allow mass uploads and limit the name from a "Master List". It allows the paste to have a name not in the list. Hope this explains better....I cannot use a data entry template, as that would be the next logical suggestion, because the thousands of entries do not follow the same naming convention. Each somewhat stands on its own.

  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,930
    Between a rock and a hard place ...

    Validating the data before import and commitment to table would probably be complicated and involve VBA code. This validation could allow good records to commit and reveal the bad records which will require case-by-case review to fix. However, little can be done to prevent bad data commitment by users doing copy/paste. This is a flaw in the data management process.
    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. Replies: 1
    Last Post: 04-14-2014, 01:38 PM
  2. Replies: 13
    Last Post: 11-17-2013, 03:33 PM
  3. Replies: 14
    Last Post: 05-25-2012, 02:40 AM
  4. Copying entry form, change control source
    By Bdowns in forum Access
    Replies: 11
    Last Post: 02-06-2012, 05:39 PM
  5. Replies: 1
    Last Post: 03-01-2011, 03:04 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