Re: GUI for access 2002
- From: John Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 31 Oct 2006 16:51:25 -0700
On Tue, 31 Oct 2006 23:39:10 GMT, "TED MEDIN" <mmaphq@xxxxxxxxxxx>
wrote:
Dialog form would fit what we are currently doing. However, I have no idea
how to open a dialog form.
This is what the vba code looks like:
docmd.openform formname,,,stlinkcritera ' have no idea what
stlinkcritera does
while isformopen(formname) then
strtmp=[form]![formname]![text0] & ""
...
doevents
wend
stLinkCriteria is an optional argument which specifies which records
are displayed on the Form. If it's blank you'll see the entire
Recordsource of the form; if it's a valid SQL WHERE clause (without
the word WHERE) you'll see just the records which match that
criterion.
If you use
DoCmd.OpenForm formname, WindowMode:=acDialog
it will open the form in dialog view. The execution of your code will
STOP - no additional lines will be executed until either the form is
closed or is made invisible. There's no need for the While...Wend
loop.
You might want to look at the VBA Help file for the OpenForm method;
there are a number of optional arguments which you may find useful.
John W. Vinson[MVP]
.
- Follow-Ups:
- Re: GUI for access 2002
- From: TED MEDIN
- Re: GUI for access 2002
- References:
- Re: GUI for access 2002
- From: TED MEDIN
- Re: GUI for access 2002
- From: John Vinson
- Re: GUI for access 2002
- From: TED MEDIN
- Re: GUI for access 2002
- Prev by Date: Re: GUI for access 2002
- Next by Date: Re: Access Relationship showing 1 to 1 not 1 to infinity please help
- Previous by thread: Re: GUI for access 2002
- Next by thread: Re: GUI for access 2002
- Index(es):
Relevant Pages
|