473,769 Members | 8,267 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

calling a subform from another form(not main form)

ken
Hi,
I have a MainForm and a SubForm. I also have a popup form that is
opened by a button click on the subform. On that form I want to set the
main form and subform.

to set mainform you do this:
dim f as form
f = forms("MainForm ")
---this works

I don't know how to set the subform though...
I tried this:
dim sf as subform
sf = forms("MainForm !Subform") but this does not work...

any help appreciated...u sing Access 2000.
Thanks

Nov 13 '05 #1
1 1688
ken
sorry I had a type up there...the code should be

to set mainform you do this:
dim f as form
set f = forms("MainForm ")
---this works

I don't know how to set the subform though...
I tried this:
dim sf as subform
set sf = forms("MainForm !Subform") but this does not work...

any help appreciated...u sing Access 2000.
Thanks

Nov 13 '05 #2

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

Similar topics

1
1357
by: A-PK | last post by:
Hi, How could I set the presence of the form to be called to be locked inside the boundary of the calling form ? I got A and B form A form contain tree view menu and B form was part of the tree view menu item. So when I click the tree view menu item and select B form to be showed under A form.
1
12066
by: edself | last post by:
I have a form which displays a subform datasheet of information. I'd like to be able to quickly click on a particular record and open up another form showing more detailed information about that record from a related table. Is there a way to do this? It would be nice to be able to right click on a cell in a datasheet and then select menu choice to open a form with related information, but it seems like to right click menues in Access...
10
600
by: headware | last post by:
I know that you can call the method of one from from inside another form by doing something like this Forms("MyForm").MyFunction(12, 34) However, you have to know that MyForm has a function called MyFunction. Can you specify a string for the function name like you can with the form name? That is can I do something like Forms("MyForm")."MyFunction"
4
1514
by: ken | last post by:
Hi, I have a MainForm and a SubForm. I also have a popup form that is opened by a button click on the subform. On that form I want to set the main form and subform. to set mainform you do this: dim f as form set f = forms("MainForm") ---this works
4
11037
by: Sandy MacDonald | last post by:
Hi everyone, This is a very simple question, but I am new to VB.net and can't seem to get a simple call to another form to work. example: If (scenerio is true) then load frmLogin end if What is wrong with this statement? I've tried various
7
6018
by: Geoff Jones | last post by:
Hi Could somebody give me an example of a way to call another member function of another form from a form that has been called using ShowDialog? Thanks Geoff
4
1675
by: William Oliveri | last post by:
Is there a way to reference a calling form and pass an object to it? This is what I'm trying to do: Form A creates new instance of Form B and then calls it modal. Form B creates a new instance of PersonalInfo class, makes a call to the db and fills that class Here's the tricky part:
0
1262
by: mtennor | last post by:
I have created ten forms and I need to know how to call one form from another form. It seems like this should be easy to do but I can't find a reference to it anywhere. I am working in C# .NET Compact Framework. I know this is a VB forum but, since there isn't a C# forum on this site, I thought I would give this a try. I want to be able to put Next and Previous buttons on each screen to navigate from one form to the next. Thanks in...
0
1558
by: jgrob3 | last post by:
I have a form which contains two subforms: and . The two subforms each have a SQL query to display their results in datasheet view and allow the user to tick which items have been billed. What I'm trying to do is to use another form to prompt the user for the ending date. The date entered is then used as the parameter in the subform SQL queries.
2
15182
by: wassimdaccache | last post by:
Hello Working on access 2007. My database file is made on access2003. I have 2 forms. (categories) and (Productlistsearch). The Productlistsearch form contain a subform called "Products subform" I want to open "Productlistsearch" from "categories" where CategoryID in "Products subform" = categoryid in categories.
0
9589
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5310
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.