+ Reply to Thread
Results 1 to 7 of 7

Navigating Around Forms

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Navigating Around Forms

    Hi Guys,

    This is probably going to be a stupid thread but it's driving me insane now.

    I have 5 forms in my application and I'm just trying to navigate around them using buttons to go from Main Menu to the next form etc.

    My first move is when the Button "cmdreports" is clicked on the frmMain form it opens frmReports.

    In VBA on the Form frmMain I've inserted:

    Please Login or Register  to view this content.
    However when I run this I get the "Run Time Error 424: Object Required".

    I don't need to declare all my Userforms do I? I was under the impression I didn't as there objects within Access anyway.

    Any help would be greatly appreciated.
    Last edited by BayEnder111; 10-26-2014 at 03:19 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Navigating Around Forms

    It might be easier if instead of 5 user forms, you used one user form with a 5 page multipage control.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Navigating Around Forms

    Make sure that the name of user form in its properties is set to frmReports.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Navigating Around Forms

    Is this Access or Excel?
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    02-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Navigating Around Forms

    Quote Originally Posted by sktneer View Post
    Make sure that the name of user form in its properties is set to frmReports.
    Yeah I've tried all the naming conventions to make sure they're correct.

    Quote Originally Posted by Norie View Post
    Is this Access or Excel?
    It's Access 2010.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Navigating Around Forms

    You don't use Show to open forms in Access, you use DoCmd.OpenForm.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    02-14-2013
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Navigating Around Forms

    Quote Originally Posted by Norie View Post
    You don't use Show to open forms in Access, you use DoCmd.OpenForm.
    Please Login or Register  to view this content.
    Thanks very much - Turns out using an Excel 2010 With VBA book to learn wasn't such a good idea!

    I assumed the functions would be the same.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Not inserting cell references when navigating forms.
    By AnotherDaveC in forum Excel General
    Replies: 2
    Last Post: 04-11-2013, 10:32 AM
  2. Excel 2007 : Navigating Worksheets
    By whitepaw in forum Excel General
    Replies: 2
    Last Post: 05-12-2011, 06:55 AM
  3. Print on ready blank forms (document forms)
    By gandrinno in forum Excel General
    Replies: 1
    Last Post: 02-16-2009, 06:12 PM
  4. Excel forms - authorise / deny forms
    By Ian Manning in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-08-2006, 12:10 PM
  5. [SOLVED] Navigating
    By Gibbie in forum Excel General
    Replies: 9
    Last Post: 01-31-2005, 07:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1