473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

removing sub form and replacing it with another at run time

Hi everyone,

I have a form which has a subform. Now based on the user selection, I
want to replace this subform with another at run time.

One approach I tried was to have both the forms on the screen and have
one of the invisible and switch the visibility states when the user
makes a selection. However, if I make the topmost form invisible, the
underlying fom still does not show for some reason.

Anyone has any suggestions, I would be grateful.

Cheers,

P

Dec 17 '06 #1
1 1127
<de**********@gmail.comwrote in message
news:11**********************@t46g2000cwa.googlegr oups.com...
Hi everyone,

I have a form which has a subform. Now based on the user selection, I
want to replace this subform with another at run time.

One approach I tried was to have both the forms on the screen and have
one of the invisible and switch the visibility states when the user
makes a selection. However, if I make the topmost form invisible, the
underlying fom still does not show for some reason.

Anyone has any suggestions, I would be grateful.
You could have each subform on a TabControl page or you can use a single subform
control and change its SourceObject property to toggle between the two subforms.
With the latter you would have to be careful to also change the MasterLink and
ChildLink properties if the same entries won't apply to both subforms.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Dec 17 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: bmgz | last post by:
I have written a simple function that validates a form based on the form objects' className attribute. The form basically write a "field required" message next to the form element that is blank(and...
13
by: teddy.am | last post by:
I know this is stupid, but i've been trying to process a form while adding a function to the onClick event. as soon as i add the onClick event, the function is triggerred but the form doesn't...
11
by: gopal srinivasan | last post by:
Hi, I have a text like this - "This is a message containing tabs and white spaces" Now this text contains tabs and white spaces. I want remove the tabs and white...
2
by: C Glenn | last post by:
I've recompiled a DLL that contains a component. The component vanished from the form. I've since tried to replace it but most of the code associated with the component remained in the cs. The...
0
by: jason | last post by:
Hello. I'm sure this is a common problem. I have output I'm displaying on an html form that has blank lines I'd like to remove. When I clip and paste the output onto an editor with hex...
2
by: Ike | last post by:
I have converted a huge vb6 app to .net. Now, I have 4 ocx controls (richtx32, commdlg32, etc) that I wish to remove from this application. Is there an easier way to do this than to go through it,...
102
by: tom fredriksen | last post by:
Hi I was doing a simple test of the speed of a "maths" operation and when I tested it I found that removing the loop that initialises the data array for the operation caused the whole program to...
6
by: Niyazi | last post by:
Hi all, What is fastest way removing duplicated value from string array using vb.net? Here is what currently I am doing but the the array contains over 16000 items. And it just do it in 10 or...
3
by: cyber0ne | last post by:
I'm designing a basic form for data entry into one main table. There are two fields in the table that I would like to be automatically populated, not user-entered, when the record is posted. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.