Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Obtaining SubForm Information from Main From

Posted on 2016-11-09
2
Medium Priority
?
65 Views
Last Modified: 2016-11-10
I have a standard Mainform 'frmInstallPayHdr', subform 'frmInstallPaySub' form.  They are both bound forms 'tblInstallPayHdr' and 'tblInstal;lPaySub' respectively..

The link between the Main and Subform is InstallPayHdrID which is the unique autonumber primary key assigned to each InstallPlan.

From within 'frmInstallPayHdr' I would like to get a list of all the elements in 'frmInstallPaySub'.

My plan is to pull the list using ADO with a select string something like 'Select * from tblInstallPaySub  Where InstallPayHdrID (in sub table) = InstallpayHdrID (in main table) and a loop to read all the returned records.

Is there a better/easier way to get the list of elements in the subform?
0
Comment
Question by:mlcktmguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 2000 total points
ID: 41881390
that is a good plan, but what is the purpose of doing this?
0
 
LVL 1

Author Closing Comment

by:mlcktmguy
ID: 41882390
Thanks
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question