Connecting Tech Pros Worldwide Help | Site Map

Testing for mode form was opened in

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 09:57 PM
JSMiami
Guest
 
Posts: n/a
Default Testing for mode form was opened in

The switchboard has a way of opening forms in either Add mode or in
Edit mode. Is there anyway of testing for that mode in VB code? If not
is there a way of testing (within a subform) if there is a parent?

Thanks

  #2  
Old November 12th, 2005, 09:57 PM
Terry Kreft
Guest
 
Posts: n/a
Default Re: Testing for mode form was opened in

1) Check the DataEntry Property of the form

2) Look at the parent property, if a form obkject is a subform then its
..Parent property will return an object, if it isn't then referring to its
..Parent property will return a trappable error (2452)

--
Terry Kreft
MVP Microsoft Access


"JSMiami" <jsalama@unete.com> wrote in message
news:445308f1.0404210812.17ec95ae@posting.google.c om...[color=blue]
> The switchboard has a way of opening forms in either Add mode or in
> Edit mode. Is there anyway of testing for that mode in VB code? If not
> is there a way of testing (within a subform) if there is a parent?
>
> Thanks[/color]


  #3  
Old November 12th, 2005, 10:01 PM
Dave Perry
Guest
 
Posts: n/a
Default Re: Testing for mode form was opened in

jsalama@unete.com (JSMiami) wrote in message news:<445308f1.0404210812.17ec95ae@posting.google. com>...[color=blue]
> The switchboard has a way of opening forms in either Add mode or in
> Edit mode. Is there anyway of testing for that mode in VB code? If not
> is there a way of testing (within a subform) if there is a parent?
>
> Thanks[/color]

JSMiami,

You may want to take a look at SysCmd function and the
acSysCmdGetObjectState argument, with a very good article at:

http://builder.com.com/5100-6386-5069824.html

-dp
 

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.