Results 1 to 10 of 10
  1. #1
    ageurtse is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    10

    comboboxes on a form

    Hello,

    i'm pretty new with Access and i'm running into a small problem.

    I use Acces 2016

    in my database i have several tables:

    tblObjects
    ---tblContacts <- this is linked to tblObjects, one object has many contacts

    tblRvOP with the folowing fields
    ID
    Objectid
    Contactid

    now here is my problem.



    i have made a form with 2 comboboxes one filled with the objects out of the objects table.
    and the next one is filled with the contacts out of tblContacts filtered bij objects

    this is working working, but when i save the record en insert a new record the data is correct stored in the table.
    But when switching from one prefilled record to another prefilled record the data is not displayed correct.
    How do i display the correct information in the comboboxes. the problem is only in the combobox cbcontacts the cbObject is displayed correct.

    i hope you guys have enove information.

  2. #2
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2016
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    On this link are some Access tutorials. Scroll down to the ones on Combo Boxes. This site was developed with earlier versions of Access, but the concepts still remain valid today.

    http://www.datapigtechnologies.com/AccessMain.htm

  3. #3
    ageurtse is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    10
    i already find this tutorials, but this is not on a table based form.
    Or how do i say it.

    My form is a record where the selected item's from the combo's are stored in.

  4. #4
    alansidman's Avatar
    alansidman is offline Indifferent
    Windows 10 Access 2016
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,538
    I am not understanding your last post. Perhaps you should upload a sample db and explain using that db as an example of what you want to happen.

  5. #5
    ageurtse is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    10
    that i wil try.

  6. #6
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Is the table storing the correct value from the combobox? This is the column defined as the Bound Column in the combobox's properties.

  7. #7
    ageurtse is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    10
    and here is my project file the correct form is frmRapportvanOplevering

    http://www.steinor.nl/Gebruikers_Basis11.accdb

  8. #8
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    I saw a thread about this once but can't seem to find it. You have to have two comboboxes, one on top of the other, and make them visible/invisible as the case may be.

    Combobox 1 with criteria, combobo2 without criteria.
    - on open, c-1 is invisible
    - in after update of main combobox, set c-1 visible, c-2 invisible
    - in after update of form, set c-1 invisible, c-2 is visible

  9. #9
    ageurtse is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    May 2017
    Location
    Netherlands
    Posts
    10
    now they both should be visible.
    And when going cycleing trhough te records, it should display the correct information.
    and i need to alter those inputs .

  10. #10
    aytee111 is offline Competent At Times
    Windows 10 Access 2013 64bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Don't understand what you are asking. If it still isn't working after making the changes, repost your database.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-31-2016, 12:16 PM
  2. Replies: 1
    Last Post: 05-26-2014, 10:31 AM
  3. Query criteria in comboboxes on a form
    By hockeyman9474 in forum Queries
    Replies: 10
    Last Post: 07-02-2013, 01:22 PM
  4. open form based on comboboxes
    By bigmac in forum Forms
    Replies: 1
    Last Post: 04-04-2012, 06:55 AM
  5. Cascaded comboboxes in a form
    By luca in forum Forms
    Replies: 2
    Last Post: 11-22-2009, 05:36 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