473,404 Members | 2,137 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,404 software developers and data experts.

How do I open Form2 from Form1 based on data in a field in a linked subform?

2
I have a "Main Form" (Switchboard) that opens my "Person Form". The "Person Form" has a subform "Program" where there can be multiple programs/person. Each Program goes thru different stages: "Application", "Approval", and/or "Denial".

What I want to do from my Main Form is open all records of those who are in "Applicant" status.
Oct 12 '15 #1
3 1102
Seth Schrock
2,965 Expert 2GB
If there are times when you don't want this filter on the subform, then probably the easiest way would be to pass the Person Form an OpenArgs value when you open it. You would then use the OnLoad event to see if the value is there, and if it is, filter your subform.
Oct 13 '15 #2
KeriT
2
I am concerned about the use of the "OnLoad" event. On my Form 1, I have a button to open the person form and see all records. I also have a button to open the Person form and go to a new record. I have a third button, and when pressed, I would like it to open the Person form, but only show those persons who have "Program" records in the "Application" phase. The way it would know the record was in application status is because [w_status]=1.

Does this change your reply? Is this even possible?
Oct 13 '15 #3
Seth Schrock
2,965 Expert 2GB
That doesn't change my answer at all. When you open the Person form and want all the records in the subform, leave the OpenArgs blank. If you want it filtered, then set the OpenArgs to "Filtered". Then in your Person form's OnLoad event test for the OpenArgs value to be "Filtered" and if it is, then filter your subform.
Oct 13 '15 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: learner | last post by:
I made a form which as a subform on it. The subform has two columns. I want to access the column data in the subform through event control for example, OnDblclick event. If the subform displays...
2
by: Galina | last post by:
Hello I have an application in MS Access 2000. I have a form, which includes a subform. The subform is based on a table, but locked for any editing. There is Edit button. When clicked, it starts a...
25
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the...
2
by: TJ | last post by:
I have a form that has a subform in it that links the Company_ID to the Shipper_ID. This works except when I want to let the user add a record. I then get a information message box saying that the...
2
by: Nu2ASP.NET | last post by:
What I am trying to do is essentially 'flip' the bits, when the user clicks in the checkbox. For example, if the CheckBox appears checked, and the user un-checks it, I want the underlying data...
4
by: Sender | last post by:
hello everyone i want to open form2 in modal form. how should i do that ? thanks in advance!
3
by: Karan | last post by:
I am calling finalize when form2 loads and deactivates form1 which closes form1. However, same thing is not happening in form2 because finalize is already called. Does anybody has solution to it....
4
by: ShayHk | last post by:
I want to Open Form2 from Form1 when Button pressed. When Form2 Opens I want it to be opened in the same window..but diffrent login ... Like Explorer.
3
by: ezra | last post by:
I am trying to create an invoice program that will automatically generate an invoice based on charges entered in a subform. Sounds easy enough! I have created my Total field on subform as unbound...
3
by: BAHyatt | last post by:
I have a form with General Information that has a button control to open a separate form based on the linked field being equal. The main form shows Gerneric DOT informtion; when I click on the...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
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...
0
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,...

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.