473,386 Members | 1,647 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.

Passing multiple fields to another form

I have a form with a subform. The subform gets populated with multiple records at any given time. I need to get the data from a particular field in the subform (which could be one record or more) to copy over to another form. Can somebody point me in the right direction as to how to accomplish this. Thanks in advance for your help
Nov 26 '07 #1
3 1316
MMcCarthy
14,534 Expert Mod 8TB
I have a form with a subform. The subform gets populated with multiple records at any given time. I need to get the data from a particular field in the subform (which could be one record or more) to copy over to another form. Can somebody point me in the right direction as to how to accomplish this. Thanks in advance for your help
You will need to give a lot more information about what you are doing and why.
Nov 27 '07 #2
We are using this as a receiving log to log materials in. The main form would show all the trucking info trailer # BOL etc. The subform will show all the products received in that load. We also print out pallet tags for each product received, this is what the new form does. So when we receive a load the operators supply all the info for the trailer and log all products, could be one pallet or several. I need to pull one field out of each of those records and match it with a field in another table to supply the new form with more info in a new recordset. The new form is actually what we are trying to print. Currently I have a qry that runs upon opening the new form that looks at the subform. I thought it would pull out from each record, but it only pulls from the first one. I hope this helps, and thanks for responding.

I have a feeling that instead of using the qry, I am going to have to write a looping sequence to do this.
Nov 27 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
This will give you a recordset of all the records in the subform.

Expand|Select|Wrap|Line Numbers
  1. Dim rst As DAO.Recordset
  2.  
  3.     Set rst = Me.subformObjectName.Form.RecordsetClone
  4.  
Nov 27 '07 #4

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

Similar topics

2
by: Richard | last post by:
**** Post for FREE via your newsreader at post.usenet.com **** HI, I am working on a project where I need to input data to a (local) HTML page using multiple form elements, such as text,...
7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
2
by: Jeff | last post by:
I'm trying to create a dynamic form that can have multiple groups of radio buttons (each group has two buttons) with the same name. Essentially, the form allows a user to enter as many names as...
12
by: Forti2ude | last post by:
Hello, I have a simple form... <form> <select name="foo" multiple> <option value="1">one</option> <option value="2">two</option> <option value="3">three</option> </select>
11
by: dskillingstad | last post by:
I've been struggling with this problem for some time and have tried multiple solutions with no luck. Let me start with, I'm a novice at Access and I'm not looking for someones help to design my...
1
by: Maria | last post by:
Hello! I am new to Crystal reports an I have problems passing parameters form outside to Crystal report an creating a report with data from more than one table This is the problem: I have to...
3
by: D. Shane Fowlkes | last post by:
Sorry for the length of this post. I have created a rather complex form which has a header/line item (parent and child records) structure. It's for an intranet. A screenshot can be seen here: ...
1
by: Shizbart | last post by:
MS Access 97 Beginner/Moderate Level User I am trying to create a Database to track Workouts in MS Access 97. I have one Table named Workouts that contains the following Fields: Workout...
58
by: bonneylake | last post by:
Hey Everyone, Well recently i been inserting multiple fields for a section in my form called "serial". Well now i am trying to insert multiple fields for the not only the serial section but also...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.