Results 1 to 6 of 6
  1. #1
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23

    Combo Box Problem

    Hi all! I have a question.

    I have a database with a form I am working on. On the form I put a combo box that I can use to choose a Law Enforcement agency, then the law enforcement agencies' information would auto populate (address, city, zip, etc.).

    Well, this morning I opened up my database that I am working on and made some changes to my form, tested everything out, and was happy with the results. Then I moved fields around (layout changes) and added some fields from another table. Then, when I went in to test my first combo box that I talked about in the first paragraph above, it has all of the information in the combo list selection so that now it just looks ugly when selecting it. Whereas before, it showed JUST the agency name, and it auto populated the rest into the fields. You can see what I mean in the screen shot below in the attachment.



    Why is it doing this all of a sudden? Literally, it was working half an hour ago with JUST the agency name. Now, it shows everything in there and I didn't even change anything!!!

    Thanks in advance!

    ~Access Newb~
    Attached Thumbnails Attached Thumbnails Screen Shot Access Forums.png  

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Can you post your combobox RowSource here? if the RowSource is based on a query, can you post the SQL for the query here?

  3. #3
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23
    Yes! Row source:

    SELECT [AgencyInfo].[AgencyName], [AgencyInfo].[County], [AgencyInfo].[Address], [AgencyInfo].[City], [AgencyInfo].[State], [AgencyInfo].[ZipCode] FROM AgencyInfo ORDER BY [AgencyName];

    Thanks.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,626
    Looks like the ColumnWidths property was changed.
    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.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Like June7 mentioned, the Column Widths property was somehow adjusted.

    Because you have this in your RowSource
    SELECT [AgencyInfo].[AgencyName]

    You can display AgencyName with a Column Widths property of
    1.5"

    Because you have this in your RowSource
    SELECT [AgencyInfo].[AgencyName], [AgencyInfo].[County], [AgencyInfo].[Address]

    You can hide AgencyName and display County with a Column Widths property of
    0";2"

    Determine how many columns you want to hold in your combo's memory and place that number in the Column Count property
    Column Count: 3

    Then choose which columns you want displayed and which you want hidden
    Column Widths: 1.1";0";2"

  6. #6
    AccessNewb11 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    23
    Great, thanks guys, I really appreciate it! I got it looking nice now.

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

Similar Threads

  1. Combo box problem
    By dkatorza in forum Access
    Replies: 2
    Last Post: 11-09-2011, 06:19 PM
  2. Combo box problem
    By corystemp in forum Access
    Replies: 3
    Last Post: 06-24-2010, 09:47 AM
  3. problem with combo box
    By ds_8805 in forum Forms
    Replies: 2
    Last Post: 03-24-2010, 10:02 PM
  4. Combo Box problem
    By Rick West in forum Forms
    Replies: 3
    Last Post: 03-18-2010, 04:42 PM
  5. Problem with combo box
    By osimini in forum Forms
    Replies: 5
    Last Post: 05-25-2009, 03:08 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