473,795 Members | 3,215 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1878
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*********@gm ail.comschreef in bericht news:11******** **************@ i42g2000cwa.goo glegroups.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*********@gm ail.comschreef in bericht news:11******** **************@ i42g2000cwa.goo glegroups.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*********@gm ail.comschreef in bericht news:11******** *************@m 7g2000cwm.googl egroups.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*********@g mail.comschreef in bericht news:11******** **************@ i42g2000cwa.goo glegroups.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.requ ery.

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
1395
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 placed in subform2 correctly. It remains zero. Below explains it better hopefully: Amount: $25 <user enters amount and it gets placed in subform1 amount> <Subform 1> Fund #: <blank until user enters> Amount: $25
2
1559
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 costs are recalculated. Estimator works great! One of the parts contains an itemized list of up to six components that can be added up to arrive at the cost of that part. The components are listed in a subform sort of like quantity, description and...
0
1943
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 to and the source object is the subform. My subform record source is a query from another table (vacationTbl). FYI: I was filtering on the subform, but removed it and replaced with
4
1679
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 related to mainform through "ProductId", subform2 is related to subform1 through "MaterialId" both subforms are displayed on the mainform. i need to find out how i can copy a product-record including all
6
7494
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. What I would like to do is when a new record is created in frmDemo I would like to set the CboTermID on the subform to a default value, say 1, without the user having to set focus on the subform and selecting an item from the combo box. Right now...
1
2413
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 on the salary details (Basic, Allowances etc) and the attendance (days worked and overtime hours). Overtime pay should be based on the basic only. Maybe the following codes/syntax (from microsoft) will help. To refer to a control on a subform,...
9
9706
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 master-child link to the first subform. subform2 - Master Field: subTrainingModule.Form!TrainingModuleTopicSK Child Field: TrainingModuleTopicSK
3
9248
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 VBA. sub tables relationships are 1:N with the main table. So the recods display like this in the subform:
2
3517
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 view my query based on the value in the textbox. the field in my query are : noreg, class, M2A, M2E, M2M
0
10439
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10215
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...
1
10165
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10001
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
5437
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...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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.