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

Code to duplicate records

Hello,
I am again submitting my question since have not had much luck with my
previous posting.

What I am trying to do is duplicate data from one table to another. I
know is not the correct procedure but would like some help with code.
Basically I have a form named CLAIMS which has it's record source to a
table also named CLAIMS. This table has 5 fields: SSN, FNAME, LNAME,
DATE, INITIALS.

I would like to add a cmdbutton on my form that duplicates (copies)
the data that I have just entered in the form into another table,
named APPLICATIONS.

Please note that the code should copy the records, close the active
form (in this case will be the form named CLAIMS), paste the data into
the table named APPLICATIONS and finally open the form APPLICATIONS to
show the data that has just been duplicated.

Can anyone help me? Thanks.
Nov 12 '05 #1
2 1618
jp***@tin.it (Paolo) wrote in news:9f41a860.0402110641.11be4d11
@posting.google.com:
Hello,
I am again submitting my question since have not had much luck with my
previous posting.

What I am trying to do is duplicate data from one table to another. I
know is not the correct procedure but would like some help with code.
Basically I have a form named CLAIMS which has it's record source to a
table also named CLAIMS. This table has 5 fields: SSN, FNAME, LNAME,
DATE, INITIALS.

I would like to add a cmdbutton on my form that duplicates (copies)
the data that I have just entered in the form into another table,
named APPLICATIONS.

Please note that the code should copy the records, close the active
form (in this case will be the form named CLAIMS), paste the data into
the table named APPLICATIONS and finally open the form APPLICATIONS to
show the data that has just been duplicated.

Can anyone help me? Thanks.


Perhaps, here:

http://www.psychosurgery.org/index_files/Page607.htm

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #2
What have you figured out so far, or have you not done any looking through
help files? What you are trying to do is extremely simple, 1 append query, 2
DoCmd Lines.

Mike Storr
www.veraccess.com
"Paolo" <jp***@tin.it> wrote in message
news:9f**************************@posting.google.c om...
Hello,
I am again submitting my question since have not had much luck with my
previous posting.

What I am trying to do is duplicate data from one table to another. I
know is not the correct procedure but would like some help with code.
Basically I have a form named CLAIMS which has it's record source to a
table also named CLAIMS. This table has 5 fields: SSN, FNAME, LNAME,
DATE, INITIALS.

I would like to add a cmdbutton on my form that duplicates (copies)
the data that I have just entered in the form into another table,
named APPLICATIONS.

Please note that the code should copy the records, close the active
form (in this case will be the form named CLAIMS), paste the data into
the table named APPLICATIONS and finally open the form APPLICATIONS to
show the data that has just been duplicated.

Can anyone help me? Thanks.

Nov 12 '05 #3

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

Similar topics

1
by: Gary Lundquest | last post by:
It appears to me that MySQL version 4 returns an error messge when doing an Insert that results in duplicate entries. Version 3 did NOT return an error - it dropped the duplicate entries and ran...
2
by: ms | last post by:
Access 2000: I am trying to delete duplicate records imported to a staging table leaving one of the duplicates to be imported into the live table. A unique record is based on a composite key of 3...
4
by: KT | last post by:
Is there any one click solution that would do the trick? I would like to create a button, so the person who maintains the database can perform clean up work to delete duplicate records which...
8
by: Steph | last post by:
Hi. I'm very new to MS Access and have been presented with an Access database of contacts by my employer. I am trying to redesign the main form of the database so that a button entitled...
2
by: Carroll | last post by:
I'm looking for a way in SQL to find duplicate records in a single table, that are the same based on 3 columns, regardless of what is in the other columns in the duplicate records. I would like to...
0
by: B.N.Prabhu | last post by:
Hi, I have a DataTable with several rows. Its having 20 Columns. when i click the Insert button then i have to check the Database Rows. Whether these new rows are already available in the...
2
by: nethravathy | last post by:
Hi, The following table namely elcbtripselect contains 5147 records.I want to know wether this table contains duplicate records or not. I tried with following query 1)SELECT...
4
by: Thomas Arthur Seidel | last post by:
Hello to all, I have a small or big problem with a customer data base, where during a change of system we might have created duplicate records. This should be easy to find, you might think, but,...
2
by: nomvula | last post by:
hi guys i need some help to duplicate records on my form datasheet: here's the example of my form results: ClientLookup DateCaptured ForecastDate Description ForecastQuantity Forecast Actual UJ...
6
by: Dilip1983 | last post by:
Hi All, I want to delete duplicate records from a large table. There is one index(INDEX_U1) on 4 columns(col1,col2,col3,col4) which is in unusable state. First of all when i tried to rebuild...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.