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

Copy value from subform1 to subform two when all are open

There are two continuous subforms in main form. All are linked with
ticketNum. When user comes to subform2. I need that Field3 of subform2
will automatically filled with field2 (field2 is a textbox) of
subform1. Field3 is a listbox where i need that user has to select
single or multiple values. control which i am using is a listbox in
field3. How to i do that needs help.

Thanks.

Sep 15 '06 #1
3 1863
It's not very clear to me what you want.

You say you need code when subform2 is entered?? ("user comes to subform2")
So you want all Fields3 of all teh records on subform2 to have the value of the current record in subform1 ??

Or you need code for a certain record when a certain (new or existing ??) record in subform 2 is getting the focus ??
Please explain again what you need.

Arno R

<co*********@gmail.comschreef in bericht news:11**********************@i42g2000cwa.googlegr oups.com...
There are two continuous subforms in main form. All are linked with
ticketNum. When user comes to subform2. I need that Field3 of subform2
will automatically filled with field2 (field2 is a textbox) of
subform1. Field3 is a listbox where i need that user has to select
single or multiple values. control which i am using is a listbox in
field3. How to i do that needs help.

Thanks.
Sep 15 '06 #2
Thanks for your reply. Subform2 is a continous form. One of the subform
field name Field3. Field3 is a type text . Since subform2 is a
continous form so the value can be one or more then one. But all forms
are connected with a field name TicketNum. After entering the values in
Subform2 user has an option to enter values in subform3. If user wants
to enter values in subform3 she select an option from the drop down
which is the part of subform2. Once she select an option from drop down
the subform3 is open.

Here in subform3 once it opens there is a listbox name Field2. I need
help here. I need to move values from subform2.field3 into list box
name subform3.field2.

Arno R wrote:
It's not very clear to me what you want.

You say you need code when subform2 is entered?? ("user comes to subform2")
So you want all Fields3 of all teh records on subform2 to have the value of the current record in subform1 ??

Or you need code for a certain record when a certain (new or existing ??) record in subform 2 is getting the focus ??
Please explain again what you need.

Arno R

<co*********@gmail.comschreef in bericht news:11**********************@i42g2000cwa.googlegr oups.com...
There are two continuous subforms in main form. All are linked with
ticketNum. When user comes to subform2. I need that Field3 of subform2
will automatically filled with field2 (field2 is a textbox) of
subform1. Field3 is a listbox where i need that user has to select
single or multiple values. control which i am using is a listbox in
field3. How to i do that needs help.

Thanks.
Sep 16 '06 #3

<co*********@gmail.comschreef in bericht news:11*********************@m7g2000cwm.googlegrou ps.com...
Thanks for your reply. Subform2 is a continous form. One of the subform
field name Field3. Field3 is a type text . Since subform2 is a
continous form so the value can be one or more then one. But all forms
are connected with a field name TicketNum. After entering the values in
Subform2 user has an option to enter values in subform3. If user wants
to enter values in subform3 she select an option from the drop down
which is the part of subform2. Once she select an option from drop down
the subform3 is open.

Here in subform3 once it opens there is a listbox name Field2. I need
help here. I need to move values from subform2.field3 into list box
name subform3.field2.

Arno R wrote:
>It's not very clear to me what you want.

You say you need code when subform2 is entered?? ("user comes to subform2")
So you want all Fields3 of all teh records on subform2 to have the value of the current record in subform1 ??

Or you need code for a certain record when a certain (new or existing ??) record in subform 2 is getting the focus ??
Please explain again what you need.

Arno R

<co*********@gmail.comschreef in bericht news:11**********************@i42g2000cwa.googlegr oups.com...
There are two continuous subforms in main form. All are linked with
ticketNum. When user comes to subform2. I need that Field3 of subform2
will automatically filled with field2 (field2 is a textbox) of
subform1. Field3 is a listbox where i need that user has to select
single or multiple values. control which i am using is a listbox in
field3. How to i do that needs help.

Thanks.
*IF* I understand you now (I am not sure ...) you want to fill a listbox (Field2) with the values of Field3 of subform2 ??
Actually you are asking a question about the rowsource isn't it ??
Create a query or sql-string for the rowsource of field2, which will be Field3 of the recordsource you are using for subform2.
When a user enters the listbox on subform3 use code like Me!Listbox.requery.

Is this what you need ??

Arno R
Sep 16 '06 #4

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

Similar topics

2
by: Ellen Manning | last post by:
Using A2K. I've got a form with 2 subforms (a subform within a subform). When the user enters an amount on the main form, I place that amount in subform1 with no problem but can't seem to get it...
2
by: Mark | last post by:
I have a project management database and it has a form called Estimator that calculates the cost of about 10 parts to a project. You can change parameters, click a Calculate button and all the...
0
by: johnson_cy | last post by:
I am using Access 2000. My main form has a record source of a table (employeeTbl with key of . It is filtering the record results. My subform and mainform have the link child/link master set...
4
by: Wout | last post by:
Hello there, i have a main form to define products in. i have a subform1 to fill in the related materials i have a subform2 to fill in the machines to process the materials subform1 is...
6
by: Rick | last post by:
I have a main form called frmDemo with a subform frmStageTrack_Sub. On the subform is a Combo Box CboTermID. The frmDemo is tied to tblDemo and the frmStageTrack_Sub is tied to tblStageTrack. ...
1
by: hakunamatata5254 | last post by:
Hi all, In my project of multiple forms (main form, subform1, 2 , 3 etc) (Main form is Employees, Subforms are Attendance, salary details, payment) Now i want to calculate the payment based...
9
by: Ecohouse | last post by:
I have a main form with two subforms. The first subform has the child link to the main form identity key. subform1 - Master Field: SK Child Field: TrainingMasterSK The second subform has a...
3
by: Richnep | last post by:
Hi all, I have tabbed subforms where I need to copy one field value from one subform over to another subform. Although I can run an update query to accomplish this I would like to do it through...
2
by: dbdb | last post by:
Hai, need a help please. i have a form to view the query subform 1. form name : form1 2. query subform name : subform1 3. textbox name : txtclass1 4. command button name : cmd1 i want to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: 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
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...

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.