Results 1 to 2 of 2
  1. #1
    Lou_Reed is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    1,664

    Combo box confusion

    In the file that I have attached, I have a question. In the form HelpDeskTickets the control HelpDeskEmployee



    is used somewhat confusingly. There is a combo cboRecievedBy that uses a help desk employeeID, however, the
    selection of the combo box only consists of help desk employee names no IDs are any where to be found.

    So how does this work?

    Also,

    StrHelpDesk = Me.cboReceivedBy.Column(1).

    is vague (at least to me) I know what the command

    StrHelpDesk = Me.cboReceivedBy

    means. It is just that ending part .Column(1) is confusing.

    Could someone explain this to me?

    Thanks in advance.

    Respectfully,

    Lou Reed
    Attached Files Attached Files

  2. #2
    Bob Fitz's Avatar
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    3,538
    It is just that ending part .Column(1) is confusing.

    Could someone explain this to me?
    When a selection is made in the combo box the value saved is actually a value that is not displayed in the combo box which is the value in the first column. You can examine what columns are in the list by viewing the Rowsource as a query. The columns are referenced by counting them from left to right but they start with the value 0, so column(1) actually refers to the second column.
    If this helped, please click the star at the bottom left of this posting and add to my reputation . Many thanks.
    Bob Fitzpatrick

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

Similar Threads

  1. Cascading Combo Box on Form Confusion
    By synses in forum Forms
    Replies: 9
    Last Post: 03-19-2017, 07:24 PM
  2. DLL Confusion
    By frankvfox in forum Access
    Replies: 6
    Last Post: 08-11-2013, 07:22 AM
  3. VB and SQL confusion
    By Wayne311 in forum Programming
    Replies: 29
    Last Post: 01-31-2011, 10:27 PM
  4. Combo box lookup confusion
    By redpenner in forum Forms
    Replies: 5
    Last Post: 08-19-2010, 08:45 PM
  5. Confusion
    By colenzo in forum Access
    Replies: 4
    Last Post: 07-21-2009, 06:38 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