170ec copying records
Sign Up |  Live StatsLive Stats    Articles 37,322| Comments 177,199| Members 19,408, Newest ssarabjeet61| Online 510
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

copying records

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Himachal Pradesh to seek records before entering 'Sikh' word in Revenue records (New Sikh News Reporter Sikh News 0 19-Feb-2009 17:00 PM
Copying and Pasting Records from one table to the next paul69 Information Technology 3 28-Jul-2006 08:35 AM
Deleting half completed records and copying records questions wazza_c12@hotmail.com Information Technology 2 28-Jul-2006 08:32 AM
Lookup Field to be used to open records and create records... jejesmith52 Information Technology 0 28-Jul-2006 08:17 AM
Filtering records in a query based on field values in adjacent records sdisalvo Information Technology 2 28-Jul-2006 08:12 AM


Tags
copying, records
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:10 AM
T Best's Avatar T Best
Guest
 
Posts: n/a
   
   
copying records

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi all,

I have a form with several subforms. With a click of a button i want to copy
the main
record and all data in the subforms that is linked to the main record.

what is the easiest way to do this?
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10186-copying-records.html

TIA
Ted



*







Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:10 AM
xRoachx's Avatar xRoachx
Guest
 
Posts: n/a
   
   
RE: copying records

Hi Ted -- What exactly would you like to accomplish? A properly normalized
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186
db should not have duplicate data stored in tables...these usually means
there are design issues.

"T Best" wrote:

> Hi all,
>
> I have a form with several subforms. With a click of a button i want to copy
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186
> the main
> record and all data in the subforms that is linked to the main record.
>
> what is the easiest way to do this?
>
> TIA
> Ted
>
>
>

Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:10 AM
T Best's Avatar T Best
Guest
 
Posts: n/a
   
   
Re: copying records

i'm trying to duplicate the main record with all the "sub records". the
reason being...it's a policy issuance system. when the policy renews i want
to give them the ability to click a button to duplicate last years policy,
check for changes and then print.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186

"xRoachx" wrote in message
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186
news:99559959-FA11-4908-A5F0-8415F290B595@microsoft.com...
> Hi Ted -- What exactly would you like to accomplish? A properly

normalized
> db should not have duplicate data stored in tables...these usually means
> there are design issues.
>
> "T Best" wrote:
>
> > Hi all,
> >
> > I have a form with several subforms. With a click of a button i want to

copy
> > the main
> > record and all data in the subforms that is linked to the main record.
> >
> > what is the easiest way to do this?
> >
> > TIA
> > Ted
> >
> >
> >



Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:10 AM
Al T's Avatar Al T
Guest
 
Posts: n/a
   
   
Re: copying records

Ted,
I have the same question as you. I have a database that contains a mail
table with 7 linked tables - which equates to a main form with 7 embedded
subforms that I wish to copy or duplicate a given record with the click of
one button. The data is entered information for a specific project. My
users will have need to up rev each project record without destroying the
previous rev. One addition to my reqauirement, is that each new duplicate add
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186
the value of 1 to the previous key field to enable the record to be savedd as
a new record.

Al T

"T Best" wrote:

> i'm trying to duplicate the main record with all the "sub records". the
> reason being...it's a policy issuance system. when the policy renews i want
> to give them the ability to click a button to duplicate last years policy,
> check for changes and then print.
>
> "xRoachx" wrote in message
> news:99559959-FA11-4908-A5F0-8415F290B595@microsoft.com...
> > Hi Ted -- What exactly would you like to accomplish? A properly

> normalized
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186
> > db should not have duplicate data stored in tables...these usually means
> > there are design issues.
> >
> > "T Best" wrote:
> >
> > > Hi all,
> > >
> > > I have a form with several subforms. With a click of a button i want to

> copy
> > > the main
> > > record and all data in the subforms that is linked to the main record.
> > >
> > > what is the easiest way to do this?
> > >
> > > TIA
> > > Ted
> > >
> > >
> > >

>
>
>

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:10 AM
Rick Wannall's Avatar Rick Wannall
Guest
 
Posts: n/a
   
   
Re: copying records

You're going to have to write some code to do this. There is no simple
click-button-copy-paste-master-and-detail-records that I know of.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186
Your button would have to make a recordset for the top level data, add a
record, and then copy whatever fields you want in the new copy. Then, make
another recordset for the detail records and repeat the process for that
data.

You can also accomplish the same thing using a database object and writing
SQL on the fly, then using EXECUTE on the database object instead of making
recordsets. I prefer recordsets, but it depends on several factors.

Which are you comfortable with?


Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:11 AM
T Best's Avatar T Best
Guest
 
Posts: n/a
   
   
Re: copying records

  Donate Today!  
Hi Rick, I'm more familiar with recordsets. I know what you're saying. That
was how I was leaning. I'm just a little unsure of how to do it.

"Rick Wannall" wrote in message
news:vxKcg.76958$F_3.46476@newssvr29.news.prodigy. net...
> You're going to have to write some code to do this. There is no simple
> click-button-copy-paste-master-and-detail-records that I know of.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186
>
> Your button would have to make a recordset for the top level data, add a
> record, and then copy whatever fields you want in the new copy. Then,

make
> another recordset for the detail records and repeat the process for that
> data.
>
> You can also accomplish the same thing using a database object and writing
> SQL on the fly, then using EXECUTE on the database object instead of

Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10186
making
> recordsets. I prefer recordsets, but it depends on several factors.
>
> Which are you comfortable with?
>
>



Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
How does Sikhi help you...
Today 15:00 PM
21 Replies, 840 Views
Keeping Amrit Vela
Today 13:45 PM
6 Replies, 798 Views
Health Exercise And...
Today 13:30 PM
0 Replies, 19 Views
SSGS with English...
Today 12:55 PM
9 Replies, 106 Views
Losing My Religion: Why...
Today 11:52 AM
11 Replies, 254 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 01:44 AM
310 Replies, 7,534 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 01:30 AM
174 Replies, 4,450 Views
Dalai Lama’s Lessons for...
Today 00:11 AM
0 Replies, 42 Views
30 Day Amrit Vela -...
Yesterday 23:49 PM
45 Replies, 677 Views
What Do You Think of...
Yesterday 22:56 PM
39 Replies, 711 Views
How Religions Change...
Yesterday 19:33 PM
0 Replies, 79 Views
Do you believe in...
Yesterday 12:00 PM
184 Replies, 3,912 Views
Thought of the Moment!
Yesterday 10:07 AM
109 Replies, 5,157 Views
Amrit
Yesterday 09:17 AM
5 Replies, 364 Views
What I believe Hukam to...
Yesterday 03:15 AM
13 Replies, 186 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 15:32 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.41703 seconds with 32 queries
0