473,387 Members | 1,512 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,387 software developers and data experts.

Copy/paste fields in a form

I have a MAINFORM with a Subform1 which has another subform2.

I want to copy the 'PORT_ID' field from subform2 and paste it to MAINFORM field called 'PORTA'.

I was thinking of having a button in subform2 which would copy and paste all at once.
May 15 '07 #1
5 2087
ADezii
8,834 Expert 8TB
I have a MAINFORM with a Subform1 which has another subform2.

I want to copy the 'PORT_ID' field from subform2 and paste it to MAINFORM field called 'PORTA'.

I was thinking of having a button in subform2 which would copy and paste all at once.
To Reference the Field in the Sub-Sub-Form from the Main Form:
Expand|Select|Wrap|Line Numbers
  1. Me![PORTA] = Forms!MAINFORM!Subform1.Form!Subform2.Form![PORT_ID]
May 15 '07 #2
Thank you for the reply!
Comand works exactly as expected when I add the button to the 'MAINFORM'.
But I would like the button placed in Subform2 and have it work the same way.
Possible?
May 15 '07 #3
ADezii
8,834 Expert 8TB
Thank you for the reply!
Comand works exactly as expected when I add the button to the 'MAINFORM'.
But I would like the button placed in Subform2 and have it work the same way.
Possible?
Expand|Select|Wrap|Line Numbers
  1. Forms!MAINFORM![PORTA] = Me![PORT_ID]
  2.                 OR
  3. Me.Parent.Parent![PORTA] = Me![PORT_ID]
May 16 '07 #4
Thanks works Great.
Now im working on Highlighting the entire record when clicking that same button.
May 16 '07 #5
ADezii
8,834 Expert 8TB
Thanks works Great.
Now im working on Highlighting the entire record when clicking that same button.
Good for you! You won't be NewToAccess for long!
May 16 '07 #6

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

Similar topics

3
by: Tlm | last post by:
Hello All, I have a form (FrmA) with a subform (SubFrmB) embedded in it. SubFrmB also has a subform embedded in it (SubFrmC) The form's recordsource is based on a table (TblA). SubFrmB's...
1
by: Sean Howard | last post by:
Dear All, As is my want I need to do something in Access that seems simple but cannot fathom out. I have main form with two subforms, both datasheets with an almost identical table structure....
0
by: igendreau | last post by:
I have a database with a Header table. Each record in tblHeader has two One-to-Many Relationships: with tblLines and tblKeys. The HeaderID field ties tblHeader to the other two tables. The data...
5
by: kirschpe | last post by:
I developed an application using visual studio 2003. Now I want to make a similar application without having to redesign similar forms. Is there a way to copy and paste windows forms across...
5
by: Kaur | last post by:
Hi, I have been successful copying a vba code from one of your posts on how to copy and paste a record by declaring the desired fields that needs to be copied in form's declaration and creating two...
4
4Him
by: 4Him | last post by:
First off, let me say this is a great site! I've just started working with Access and much of my success is from what I've read here! Background: I have a form, driven off a single table. Goal:...
11
by: John | last post by:
Hi In a winform app I need to provide a menu with Cut, Copy and Paste options., What code do I use to accomplish cut, copy and paste features for fields on a winfrom? Thanks Regards
7
kcdoell
by: kcdoell | last post by:
Good morning everyone: I created a form and set the default view as a continuous form. Basically the form is displaying records in which the user can add or edit new ones. The record source for...
1
by: lrw0831 | last post by:
I have the main form where employees enter "issues". Some issues have fields that are the same. My fields are Issue ID (auto) Product Entered BY Issue Type Priority Request from Status...
6
by: lrw0831 | last post by:
I have the main form where employees enter "issues". Some issues have fields that are the same. My fields are Issue ID (auto) Product Entered BY Issue Type Priority Request from Status...
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: 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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: 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
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,...

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.