Results 1 to 4 of 4
  1. #1
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283

    Button Names on a form

    Is there a way when running queries, macros or reports from a button to have the name of the button displayed instead of the object that was run?



    For example I have a button titled Revenue that when pushed runs the query XPPS_YTD_Revenue. When the Tab opens it is titled XPPS_YTD_Revenue. Is there a way to get the tab to show the name of the button instead of the underlying object?

    Thanks in advance

    bret

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Why do you 'run' that query? Users should not work directly with tables and queries, just forms and reports.

    Do not think the tab caption can be altered. I don't use Tabbed Documents style, always change db to Overlapping Windows.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    mindbender is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2013
    Posts
    283
    they are hitting a button on a form that calls an embed macro that calls a query. When the data is returned the tab name (window name) shows the name of the query that was run and not he name of the button that was pressed. I would like it to display the name of the button that was pressed

  4. #4
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    We understand what you want to do, but I agree with June7, in that I don't think it'd possible. My guess is that your only choices are to

    1. Rename your Queries
    2. Create Forms, based on your Queries, and name them as you like
    3. Modify your Command Buttons to call the Forms, instead of directly calling the Queries

    I also agree with June7 in that users really should not work directly with Tables or Queries, but rather through Forms.

    Linq ;0)>

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

Similar Threads

  1. Form Names
    By crowegreg in forum Forms
    Replies: 4
    Last Post: 10-09-2013, 05:10 PM
  2. Autopopulate names from table onto form and more
    By Kat-ness in forum Database Design
    Replies: 17
    Last Post: 12-15-2012, 08:28 AM
  3. writing control names on a form to a table
    By focosi in forum Access
    Replies: 1
    Last Post: 09-21-2011, 08:47 AM
  4. Query Entity Names, and Column Names
    By Accidental DBA in forum Queries
    Replies: 1
    Last Post: 07-22-2011, 02:38 PM
  5. Replies: 5
    Last Post: 04-24-2011, 03:14 AM

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