Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 951871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:48:15+00:00 2026-05-15T23:48:15+00:00

So I am trying to use a button click to open the next form

  • 0

So I am trying to use a button click to open the next form (in my form flow), and pass the ID to the next form using openArgs:

docmd.openform "NextForm",,,,,, MainID
docmd.close acform, "CurrentForm", acSaveYes

the second form will not open….i have never run into this problem with a docmd.openform in a sub before. however, this is my first experience using OpenArgs….usually I would pass a value to a hidden text box, but I am trying something different.

The routine runs without error, and the currentform closes just as it should. It’s like access is convinced the second form is in fact open, but its not showing up. Also if I even try to show the database objects window, and just click open the form from there…..nothing

please help!
thanks
Justin

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T23:48:16+00:00Added an answer on May 15, 2026 at 11:48 pm

    It’s like access is convinced the second form is in fact open, but its not showing up.

    If you get no error message when the form apparently fails to open, check whether NextForm is present in the Forms collection. In the Immediate Window, try:

    ? Forms("NextForm").Name
    

    What happens? The Forms collection includes the forms which are open. If you get an error message that NextForm isn’t found, then NextForm is not open. But, if that command returns the name NextForm, the form is open but you can’t see it.

    That can happen in at least 2 ways:

    1. form has been opened hidden
    2. form has been opened at a screen position outside your visible display area

    If the form really does not open, and you’re not getting an error message, make sure you don’t have SetWarnings and Echo turned off.

    If those suggestions don’t lead you to the cure, show us what NextForm is attempting to do with OpenArgs. Can you get NextForm to open if you temporarily disable its OpenArgs handling code?

    Update: A couple more questions …

    Can you open NextForm in design view?

    What happens if you try the following command in the Immediate Window? Error message?

    DoCmd.OpenForm "NextForm",,,,,acWindowNormal
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use strtotime() to respond to a button click to advance -1
I am trying to use jquery or jscript to click a hidden button and
I have a big red button and I'm trying to use javascript to perform
Trying to use an excpetion class which could provide location reference for XML parsing,
Trying to use a guid as a resource id in a rest url but
While trying to use LINQ to SQL I encountered several problems. I have table
I' trying to use a Linq query to find and set the selected value
I trying to use ImageInfo and Jython to get information from a image on
I'm trying to use svnmerge.py to merge some files. Under the hood it uses
I've been trying to use SQLite with the PDO wrapper in PHP with mixed

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.