CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Dupolicating Records

Print topic Send  topic

Author Message
JFS
Posted: 04/30/2002, 6:06 AM

PHP4, MySQL
Can anyone tell me an easy way of duplicating a record. I want to select a record from a grid and make a duplicate of that record with one field changed when the user selects update. Any help greatly appreciated.
Alex Alexapolsky
Posted: 04/30/2002, 8:11 AM

Rename Cancel button to "Duplicate" and form sql insert in "Before Cancel"
event.
Tom
Posted: 01/30/2003, 8:48 AM

I also look for a solution for the same problem. Unfortunately I dont understand the answer of alex. Maybe someone can explain it.
Rene
Posted: 07/22/2003, 1:01 AM

I had this problem and i figured out the way .. I created a custom insert on an updatable form .. I took the sql .. I pasted it in the custom update .. this way .. the page will think that this is an update and will execute the code which inserts the records again .. you can play with fields putting what you want ot dont want .. I hope this helps


Meshal,

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.