Results 1 to 2 of 2
  1. #1
    Poyan is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Location
    Toronto, Canada
    Posts
    3

    Variable across multiple forms/reports

    My apologies for the newbie question.

    I have created an access database with several forms and reports. Is there a way to put some text on the header of every form and report, which can also be changed simultaneously?

    The database is essentially a template I plan to use on each new project, and I want to be able to input the name of the new project on every form and report easily.

    Thanks.

  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,521
    A couple of ways come to mind. You can put the value in a table, and get it there with a DLookup, etc. You could use a global constant, and return the value with a public function. You don't even need the constant, you can just have the function return the value directly. Using either method, all of your forms and reports can get the value from the central location.
    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. Pass variable name to another forms
    By Thomman in forum Access
    Replies: 3
    Last Post: 04-07-2011, 10:01 AM
  2. Forms and reports
    By g2rules in forum Access
    Replies: 0
    Last Post: 03-08-2011, 09:09 AM
  3. Declare a Global Variable and Use it on Forms
    By jackkent in forum Access
    Replies: 9
    Last Post: 10-07-2010, 10:19 AM
  4. Forms and Reports
    By nacho in forum Forms
    Replies: 3
    Last Post: 04-17-2010, 01:06 AM
  5. using forms control as report variable
    By Seven in forum Reports
    Replies: 3
    Last Post: 12-19-2009, 04:04 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