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

  • SEARCH
  • Home
  • 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 6802501
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:13:51+00:00 2026-05-26T19:13:51+00:00

I am trying to open a form as a dialog and also pass a

  • 0

I am trying to open a form as a dialog and also pass a string in the OpenArgs property. No matter what I try, I get an Invalid use of null error.

The form is not open. It’s not open in design mode either. Can anyone shed some light on this for me?

Here’s the calling line:

DoCmd.OpenForm strTmpForm, acNormal, , , , acDialog, "Hi"

Here’s the Form Open Sub on the target form

Private Sub Form_Open(Cancel As Integer)
    MsgBox Me.OpenArgs
End Sub
  • 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-26T19:13:52+00:00Added an answer on May 26, 2026 at 7:13 pm

    Are you sure the form isn’t open and hidden? It seems likely, since the usual dialog pattern usually involves hiding the dialog form to allow control to resume in the calling method.

    To be certain:

    If SysCmd(acSysCmdGetObjectState, acForm, strTmpForm) <> 0 Then
        DoCmd.Close acForm, strTmpForm
    End If
    

    If that’s not the problem then I’d ask if you can post the entire calling method rather than the calling line.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to do a confirm dialog using jquery, but the form doesn't get
I am trying to open a dialog box (data-rel=dialog) form a link in a
I am trying to post data from my form to a jquery dialog that
Hello everyone iam trying to open a aspx page in a dialog box window
I am tryng to use this: http://jqueryui.com/demos/dialog/#modal-form I have: <script type=text/javascript> $(document).ready(function() { $(#dialog).dialog();
I'm trying to get a simpleDialog box to open up via a link using
I have a JSf form, I am tryin' to use jQuery Ui dialog plugin
I've been trying for a very long time to get this dialog box to
I'm trying to open a jQuery dialog using AJAX. The content of the dialog
I'm having all kinds of grief trying to re-use a jQuery-UI dialog. First time

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.