Results 1 to 5 of 5
  1. #1
    TenOc is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Feb 2015
    Posts
    94

    Not on list works on tables but not on sub-form.

    I do not know if this should be in Forms or programming or Tables. I have a table with a field that is a lookup combo box with "limit to list" YES and "allow value list edit" NO. When I attempt to input an item not on the list directly into the table I get an expected error not on list. Thus it is working as it should.

    However, if I enter data from a sub-form into a new record and enter an item (or edit the field) to an item not on the list the program accepts the not on list input and post it to the table with out any errors.

    I have tried to trigger on the sub-form an "not in list" event for a message box and again without any success. I think (?) I read someplace that a sub-form is closed AFTER the main form so the event not in list on the sub-form may not happen, but the Table rules should have found the error.

  2. #2
    TenOc is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Feb 2015
    Posts
    94
    I found the problem. There is a "not on list" property also on the sub-form. I set it and all works now.

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I am glad you resolved issue but description of issue and resolution are confusing.

    NotInList is an event of combobox, not a property of form.
    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
    Minty is offline VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    Lookup fields should be avoided in table design.
    Have a read here for some background. http://access.mvps.org/access/lookupfields.htm
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  5. #5
    TenOc is offline Advanced Beginner
    Windows 7 64bit Access 2013
    Join Date
    Feb 2015
    Posts
    94
    Quote Originally Posted by June7 View Post
    I am glad you resolved issue but description of issue and resolution are confusing.

    NotInList is an event of combobox, not a property of form.
    I should have said "Limit to List" on the sub-form's combo box.

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

Similar Threads

  1. Replies: 8
    Last Post: 07-03-2015, 05:03 PM
  2. Replies: 1
    Last Post: 06-21-2015, 07:58 AM
  3. Replies: 1
    Last Post: 05-23-2013, 11:20 AM
  4. Jopin (or whatever works) stand alone tables.
    By h1mself2 in forum Access
    Replies: 3
    Last Post: 12-14-2012, 11:48 PM
  5. Replies: 6
    Last Post: 09-02-2012, 04:30 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