Results 1 to 4 of 4
  1. #1
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200

    ComboBox Recordsource -- SQL and static list

    Hello,



    I would like to set the RecordSource of my combobox to be based on a SQL statement/Query. But I also have two additional values that are always "static". So I basically want a combination of the SQL statement (dynamic) and a list of values (static). Any way I can do this programmatically?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Presumably you mean row source. You can do this:

    http://access.mvps.org/access/forms/frm0043.htm

    or put the values in a table.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    tylerg11 is offline Competent Performer
    Windows 7 64bit Access 2007
    Join Date
    Sep 2011
    Posts
    200
    Yes, that works. Thanks.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    No problemo.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 5
    Last Post: 10-16-2012, 12:22 PM
  2. 'Static' progress bar in list box column
    By akshatagarwal93 in forum Forms
    Replies: 1
    Last Post: 08-28-2012, 11:39 AM
  3. Replies: 1
    Last Post: 08-11-2011, 11:17 AM
  4. How to select ComboBox list in Run time
    By sdondeti in forum Forms
    Replies: 2
    Last Post: 06-20-2011, 10:21 AM
  5. Replies: 3
    Last Post: 05-13-2011, 08:48 AM

Tags for this Thread

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