473,854 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do I "Copy" and "Paste" child subform records in details section?

1 New Member
Hello. I am new to access, but have had great success in creating an application. My one user is requesting a function to save time in data entry... and I am stumped being the plebian that I am.

My application is used to enter land owner information by parcel (40 acre lots). For example: for parcel #1 someone owns the land, someone owns the mineral rights, someone owns the water rights, etc, etc... and we inventory about 36 square miles of land (about 600 parcels) for now.

My master on the form is the Parcel ID, and the child subforms are the different categories of ownership (surface, mineral, etc) sorted by their legal descriptions (Parcel ID - which includes Township, Range, Section, QQ).

I want to create a function that works like copying something to the clipboard, but I would be "copying" the current records in the subforms so I could "paste" them into a different Parcel ID record.

Here is my question:
How can I copy all the records on a subform (using a click event), find a different record (parcel), and then "paste" them into the same subforms (using a click event)?

Keep in mind I will need new auto numbers.

Do I store them as a variable? Use an append query? If someone could start me off on the right foot, I would be grateful. If you need more details I will provide.

Oct 2 '07 #1
1 2289
3,080 Recognized Expert Specialist
Copying data isn;t the way to go in a normalized database.
You should identify the "correspond ing" fields and create another table with an autonumber ID for them.
You can see the Northwind.mdb as a sample. Not every order will hold the Customer Address information, there's a tblCustomer and there's the address. The order just holds the CustomerID.

The same way you need to rethink your tables.

Getting the idea?

Oct 6 '07 #2

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

Similar topics

by: Add and Paste | last post by:
Dear Access developers, I have a lot of cut and pasting to do from Excel to an Access form. But instead of just pasting, I want to "add then paste" the value. Does anybody have a way to do this? Existing code would be appreciated! In other words, I'd like to right click on a form text box and add the value stored in the clipboard to the existing value which is in the text box.
by: Eric Sabine | last post by:
During a process in an app, I have a string created in code that I want automatically saved in the user's cache so he can move to another program and do a CTRL-V (or paste). This is easy I'm sure, but it's eluding me. Eric
by: Stan Brown | last post by:
Posted by Pierre Blais in the current RISKS Digest: http://catless.ncl.ac.uk/Risks/24.24.html#subj9 -- Stan Brown, Oak Road Systems, Tompkins County, New York, USA http://OakRoadSystems.com/ HTML 4.01 spec: http://www.w3.org/TR/html401/ validator: http://validator.w3.org/ CSS 2.1 spec: http://www.w3.org/TR/CSS21/ validator: http://jigsaw.w3.org/css-validator/
by: yevron2 | last post by:
Hello, I am tring to write a clipboard spy that catches events from the clipboard. I used the SetClipboardViewer api to get events when data is copied into the clipboard, and also GetClipboardOwner to know where the data was copied from, but i don't know how to get an event when data is being pasted... not in my application only, anywhere. Is there an other way other than a hook on the keyboard?
by: ÷zden Irmak | last post by:
Hello, Does anybody know a way to get the local equvalents of strings used by explorer such as "Cut","Copy","Paste" ? Thanks in advance... Regards, ÷zden Irmak
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 this form is a query that I built that is based on a table. I have been working on this for several weeks and now I have been told that many times when a user wants to create a new record, much of the information that is displayed in a...
by: aeconsta | last post by:
I want to add images to my database by copying and pasting the image. I am using MS SQL Server Express 2008 and MS VB Express 2008. I want to create a simple program that displays data including images (.jpg) of items and text that describes characteristcs about the items. The images are currently in a MS Word table. I would like to simply convert the table into an SQL database, but seems not possible. Failing that, I would like to copy...
by: Kappucino XL | last post by:
Hi There.. What is the Macro or Code Builder Event, For Copying And Pasting. i.e: I need to click on a field in a textbox, and it must be copied jus by clicking on it. Then I want to click on an empty textbox, and the field I copied must get pasted... How do I go About doing this? XL
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
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...
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...
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...
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...
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
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
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
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.