Results 1 to 2 of 2
  1. #1
    pharmacologist is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2019
    Posts
    39

    SQL query for lookup rowsource for combo box doesn't show the first field requested

    I have a SQL query that populates a combo box from a few different fields but whichever field I list first after SELECT does not appear in the combo box.

    Example:

    SELECT [Cells].[Plasmid], [Cells].[CellType], [Cells].[CellID], [Cells].[FreezeDate] FROM Cells ORDER BY [CellID];

    The Plasmid field does not appear in the combobox but the others do. If I remove the Plasmid field, then CellType no longer appears in the combo box. I have enough columns, e.g. I set it to 4 columns and the first 3 are populated by CellType, CellID, and FreezeDate, but the 4th column is empty.



    edit: I'm an idiot. Column 1 width was set to 0
    Last edited by pharmacologist; 02-15-2020 at 12:38 PM. Reason: solved

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Are the columns numbered from eg 0,1,2,3?
    You'll have to post some code or a copy of the database if you need more assistance.
    Readers need to see some of the details re your combobox, and related tables. Hopefully you are not using lookups in table fields.

    Aside" your plasmid, cell and freezeDate brought this older post to mind.

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

Similar Threads

  1. Replies: 5
    Last Post: 01-20-2018, 03:40 PM
  2. Table > Field > Lookup > RowSource
    By monvani in forum Access
    Replies: 2
    Last Post: 02-06-2016, 09:50 PM
  3. Replies: 5
    Last Post: 01-23-2015, 03:38 PM
  4. Replies: 5
    Last Post: 07-08-2014, 07:47 AM
  5. Lookup or list field: how Do I not show all records
    By scott munkirs in forum Forms
    Replies: 4
    Last Post: 04-13-2006, 12:44 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