Results 1 to 3 of 3
  1. #1
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581

    Using second column in a combo box


    I'm trying to bring over information from a combo box from another form. I need the information from the second column. Here's the default value I put: =IIf(IsNull([Forms]![frmStatisticAnalysis]![cboCampusID]),"All Campuses",[Forms]![frmStatisticAnalysis]![cboCampusID])

    I'm trying to get the information from the second column in combo box [cboCampusID] in [Forms]![frmStatisticAnalysis]![cboCampusID]

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Reference the column index. Index begins with 0. Second column has index 1.

    [cboCampusID].Column(1)

    You put this in DefaultValue property?
    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.

  3. #3
    UT227 is offline Expert
    Windows 7 32bit Access 2013 32bit
    Join Date
    Feb 2016
    Posts
    581
    Yes. I put it in the default value. I didn't have anywhere on my query to pull the information from. I had to use my search form as the default values for the form's title. It's not the way I wanted to handle it, but it solved a problem that I have been working on for a while now.

    Thanks a lot. That worked like a charm.

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

Similar Threads

  1. Replies: 5
    Last Post: 05-31-2017, 08:58 AM
  2. Replies: 12
    Last Post: 02-15-2016, 11:10 AM
  3. Import from CSV - Combo Box Column
    By cmcfarland in forum Import/Export Data
    Replies: 12
    Last Post: 10-28-2014, 12:25 PM
  4. Replies: 2
    Last Post: 11-25-2013, 01:15 AM
  5. Isolate Column in Combo Box
    By jgelpi16 in forum Forms
    Replies: 2
    Last Post: 05-06-2010, 12:52 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