Results 1 to 4 of 4
  1. #1
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150

    Bound combo box returns wrong values when ID field hidden, correct if visible

    Okay, this is a weird one. I have a bound form with two related combo boxes, cboDiscipline and cboSytem.cboSystem is based on a table with three fields, ID, System and Discipline.

    The combo box is set up so that it only displays the system values that has a discipline as recorded in cboDiscipline (criteria [Forms]![frmUpdateACS]![cboDiscipline].



    This works fine when the ID field in cboSystem is displayed, formatted to have a column width of 1cm, but when I hide it, formatted to have a column width of zero, the combo box is always generating a list of options as if the discipline ID is 1, and hence is wrong in all cases except where this is the case meaning the System data is not displayed.

    The data in the discipline combo box is always displayed correctly. I'm completely stumped. This doesn't seem like it should be possible. All I'm changing is the formatting to not display the first column. It's still there in the query. Any ideas?
    Last edited by Robyn_P; 08-07-2018 at 04:53 AM. Reason: Formatting

  2. #2
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150
    PS, I've already done a compact and repair on the database which didn't help. It looks like something must have got corrupted. It's so weird

  3. #3
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150
    Hi again, I'm wrong, even with the ID column showing the list of available options doesn't change. I thought it was working because at least it displays the ID, whereas with this hidden, the text version wasn't displaying. Do I need to requery the cboSystem combo box on record change?

  4. #4
    Robyn_P's Avatar
    Robyn_P is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Nov 2017
    Posts
    150
    Yep, that fixed it. Bit premature with the question, but hey maybe it'll help someone else. Thanks anyway.

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

Similar Threads

  1. Replies: 4
    Last Post: 09-04-2014, 07:00 AM
  2. Field Data not visible / hidden
    By Xarkath in forum Access
    Replies: 3
    Last Post: 08-22-2014, 07:14 PM
  3. Replies: 2
    Last Post: 10-21-2013, 03:50 PM
  4. Replies: 2
    Last Post: 04-10-2012, 12:30 AM
  5. Replies: 0
    Last Post: 01-18-2011, 07:09 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