Results 1 to 2 of 2
  1. #1
    naveehgreen is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2010
    Posts
    2

    Keep value constant in query until necessary to change

    Hey all,

    Right now, I'm using a query by form technique to update some queries of mine with a different value. Is it possible to keep this value constant (i.e., have the form NOT ask me for this value every time I want to run the query) until I decide to change it? I won't be changing the value for about 3 months.



    Thanks

  2. #2
    Join Date
    May 2010
    Posts
    339
    Yes you can have many constants and refer back to them when you need to. The below example would be for a listbox.

    Code:
    Option Compare Database
    Option Explicit
     
    Const MYRowSource = "SELECT DISTINCTROW RecordID, SomeDate, UserName FROM [MyTable]"

    Richard

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

Similar Threads

  1. Change font color in Query
    By Brian62 in forum Queries
    Replies: 2
    Last Post: 01-10-2013, 09:14 PM
  2. Replies: 2
    Last Post: 05-27-2010, 10:31 AM
  3. Change Path of Make Table Query
    By Arnie49 in forum Access
    Replies: 0
    Last Post: 03-14-2010, 05:29 PM
  4. Name Change
    By skip17 in forum Access
    Replies: 0
    Last Post: 01-12-2009, 01:28 PM
  5. Replies: 1
    Last Post: 09-05-2008, 12:07 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