A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

What form am I on?



 
 
Thread Tools Display Modes
  #1  
Old December 9th, 2005, 05:07 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default What form am I on?

I'm expirementing with using the same subform on two different main forms.

However, I need different code (in just a few places) if the subform is on
one
form as oposed to the other.
There are also instances where both forms will
be open at the same time.

So... I don't think IsOpen or IsLoaded will do the trick.

How can I determine what main form the subform is on?

Thank you,
BobG


  #2  
Old December 9th, 2005, 05:24 PM posted to microsoft.public.access.forms
external usenet poster
 
Posts: n/a
Default What form am I on?

Thanks anyway folks.
Looks like I can use Me.Parent.Name to make my code decision.
I had an error in my testing that made it look as thought Me.Parent.Name
wasn't working
Bob G

"BobG" wrote in message
...
I'm expirementing with using the same subform on two different main forms.

However, I need different code (in just a few places) if the subform is on
one
form as oposed to the other.
There are also instances where both forms will
be open at the same time.

So... I don't think IsOpen or IsLoaded will do the trick.

How can I determine what main form the subform is on?

Thank you,
BobG



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search facility tezza General Discussion 13 February 18th, 2010 12:26 AM
Move feild entries from form to form using global variables JackCGW General Discussion 11 November 14th, 2005 05:22 AM
Need Help In Printing Current Record in Specific Report RNUSZ@OKDPS Setting Up & Running Reports 1 May 16th, 2005 09:06 PM
Dates in a listbox connected to a form... RusCat Using Forms 13 November 25th, 2004 02:31 AM
auto entry into second table after update Tony New Users 13 July 9th, 2004 10:42 PM


All times are GMT +1. The time now is 02:27 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.