Results 1 to 5 of 5
  1. #1
    buckwheat is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    144

    Naming Forms

    An inherited database has several forms named such as: frmAdd New Facility - subform.



    I'm trying to create a form that opens with no subforms showing and subforms executing when a cmdbutton is clicked. Code I've used in the past for an Open Event: Me.frmSample.visible = false. Then on the cmdbutton for the frmsample: Me.frmSample.Visible = true

    What should I do about the poor naming convention for these forms if I want to use the code above? Too many reports, queries, and macros attached to rename.


    Can anyone advise please?

  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,652
    Put brackets around the names, just like fields.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    buckwheat is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    144
    how so please . . . I tried before thread, if it's this format I receive a an error that field l cannot be found. Me.[frmAdd New Facility].visible = true

  4. #4
    buckwheat is offline Competent Performer
    Windows XP Access 2003
    Join Date
    Jan 2013
    Posts
    144
    ok, now fixed, it appeared in the drop down list with spaces, but still worked. Thanks for your help.

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    No problem.
    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. Setting Naming Conventions for IDs
    By LukeJ Innov in forum Access
    Replies: 1
    Last Post: 04-25-2013, 06:27 AM
  2. Naming scheme thru VBA
    By redbull in forum Programming
    Replies: 10
    Last Post: 04-10-2012, 02:37 PM
  3. Naming conventions
    By Yesideez in forum Database Design
    Replies: 3
    Last Post: 06-29-2011, 08:55 AM
  4. Naming a Calculated Field
    By wscott in forum Reports
    Replies: 4
    Last Post: 10-11-2010, 02:20 AM
  5. Table naming - use prefix or not?
    By revnice in forum Access
    Replies: 4
    Last Post: 08-08-2010, 11:55 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