Results 1 to 2 of 2
  1. #1
    thekruser is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Aug 2010
    Posts
    93

    Arrow Is it possible to use fields from a table as static text in a form?


    What I have:

    tblSetup
    -Company name
    -Address
    -Phone number
    -etc, etc

    What I am trying to do:

    The database I am working on will eventually be distributed to certain parts of my organization. I would like the gaining admin to be able to simply enter the requisite information in the set up table and have that information replicated throughout the forms and reports.

    The problem:

    I think I can figure out the reports part (but any pointers would be helpful); however, I simply cannot get it to work in forms. The problem comes when Access tries to relate tblSetup with the tables being used in the form. Is there a way to simply add data from tblSetup as static content on a form?

    Thank you in advance for your time and help.

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I suspect trying to include the table in a query without a join will result in a read-only query. You could use a textbox with a control source of:

    =DLookup("CompanyName", "tblSetup")

    To avoid repeated calls to the table you could load a hidden form with the values on startup and simply refer to that form from other forms and reports. You could also use a little subform bound to that table and include it on other forms.
    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: 09-14-2010, 09:50 PM
  2. Form fields export to local table
    By lupis in forum Forms
    Replies: 0
    Last Post: 03-23-2010, 02:38 PM
  3. Replies: 3
    Last Post: 02-01-2010, 08:26 AM
  4. Replies: 0
    Last Post: 08-13-2008, 03:15 PM
  5. Split text field into two text fields
    By Grant in forum Access
    Replies: 6
    Last Post: 01-31-2008, 05:52 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