Results 1 to 4 of 4
  1. #1
    SGrohola is offline Advanced Beginner
    Windows 10 Access 2013 64bit
    Join Date
    Mar 2017
    Location
    Romulus, MI
    Posts
    41

    Question Problem with combobox in form

    I'm in the process of setting up an Accident database. I have a query which is what I using for my form. In the query, I'm using a main table (tbl_General Info). This table has 2 comboboxex which are linked to other tables (tbl_terminals & tbl_regions), pulling 1 column. for each, as a drop-down. I also have another table (tbl_Driver Info).

    In the query, I have all the fields from tbl_General Info (which includes the comboboxes), and then 1 additional field from tbl_terminals, and 1 field from tbl_Driver Info. When I run the query, it runs fine, and let's me change the terminal in the combobox field, and the region in that combox, after I run the query, and saves the query.

    I'm using this query to set up my form, and when I bring the form up in "Form view", and select the drop-down for terminals or for regions, it will let me make a different selection from the combobox, but then, it will not save the form, and gives me an error.



    Click image for larger version. 

Name:	Accident form.JPG 
Views:	11 
Size:	38.9 KB 
ID:	30925

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It sounds like you are using lookup fields in your tables. https://btabdevelopment.com/how-to-r...t-table-level/

  3. #3
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    This table has 2 comboboxex
    I agree with Allan. Most developers will advise you to not use Lookup fields in tables. Best practice is to use Lookup tables and relationships.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Our basic code of conduct. http://theaccessweb.com/tencommandments.htm

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

Similar Threads

  1. Problem with combobox
    By MikicaMika in forum Forms
    Replies: 11
    Last Post: 01-04-2016, 08:26 AM
  2. Replies: 1
    Last Post: 09-12-2013, 11:56 AM
  3. Combobox setting other combobox values problem
    By maxmaggot in forum Programming
    Replies: 8
    Last Post: 06-30-2013, 07:18 AM
  4. Replies: 3
    Last Post: 05-16-2013, 08:21 PM
  5. Problem with ComboBox
    By cheyanne in forum Forms
    Replies: 3
    Last Post: 06-05-2012, 05:06 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