Connecting Tech Pros Worldwide Help | Site Map

Determining whether an open form is being displayed in form view?

 
LinkBack Thread Tools Search this Thread
  #1  
Old June 16th, 2006, 12:05 PM
MLH
Guest
 
Posts: n/a
Default Determining whether an open form is being displayed in form view?

I use the following in A97 to tell if a form is open:

If IsNull(TheForm) Then Exit Function
IsFormOpen = SysCmd(acSysCmdGetObjectState, acForm, TheForm)

Is there a way I can tell if it is open in Form View?

  #2  
Old June 16th, 2006, 12:25 PM
Allen Browne
Guest
 
Posts: n/a
Default Re: Determining whether an open form is being displayed in form view?

Test the CurrentView property of the form.
1 is Form view.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"MLH" <CRCI@NorthState.net> wrote in message
news:lj759251fubti2nrlv59et5rsji2q2frbv@4ax.com...[color=blue]
>I use the following in A97 to tell if a form is open:
>
> If IsNull(TheForm) Then Exit Function
> IsFormOpen = SysCmd(acSysCmdGetObjectState, acForm, TheForm)
>
> Is there a way I can tell if it is open in Form View?[/color]


  #3  
Old June 16th, 2006, 01:05 PM
MLH
Guest
 
Posts: n/a
Default Re: Determining whether an open form is being displayed in form view?

On Fri, 16 Jun 2006 20:28:04 +0800, "Allen Browne"
<AllenBrowne@SeeSig.Invalid> wrote:
[color=blue]
>Test the CurrentView property of the form.
>1 is Form view.[/color]

I tried this ===>
Dim frm As Form
Set frm = Forms(frmCreateInvoice)
If frm.CurrentView <> 1 Then
MsgBox "frmCreateInvoice is not displaying in form view"
End If

Worked great. Thanks!
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.