Re: Stop VBA execution until form is closed

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Marshall Barton (marshbarton_at_wowway.com)
Date: 04/19/04


Date: Mon, 19 Apr 2004 12:05:39 -0500

Bakema wrote:
>I want to open a form programatically, and then stop
>execution of the procedure for checking data in the form.
>After closing the form (and loading some of the checked
>data in public strings for use elsewhere) the procedure
>should resume automatically and access the public strings
>(for putting them in a Word document).
>Opening the form is no problem, loading the form's data
>to strings on closing works fine, but I did not manage to
>making the procedure wait so that somebody can check and,
>if necessary, edit the form's data.

Open the form in Dialog mode:

DoCmd.OpenForm "nameofform", . . ., WindowMode:= acDialog

-- 
Marsh
MVP [MS Access]


Relevant Pages

  • Stop VBA execution until form is closed
    ... execution of the procedure for checking data in the form. ... After closing the form (and loading some of the checked ... should resume automatically and access the public strings ...
    (microsoft.public.access.formscoding)
  • Stop VBA execution until form is closed
    ... >After closing the form (and loading some of the checked ... >should resume automatically and access the public strings ... >(for putting them in a Word document). ... >to strings on closing works fine, but I did not manage to ...
    (microsoft.public.access.formscoding)
  • Re: Menu Items Showing in Object Properties Dropdown
    ... after loading these demos, and closing them, and now opening my own ... VB.Net: "Fool me once..." ...
    (microsoft.public.vb.general.discussion)
  • Re: Diamondback more productive than VS.NET?
    ... especially when opening and closing VS.NEt. ... > is so slow to open/close. ... It depends on what plug-ins you have in VS.NET and how many packages ... you are loading by default in Delphi. ...
    (borland.public.delphi.non-technical)
  • Internet Explorer Not closing
    ... In my system if i am opening the IE6.0 and presing close ... button without loading any page its closing, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)