It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Visual Basic Forum

Create New Record based on Exisitng record

Moderator: dafunkymunky

Create New Record based on Exisitng record

Postby bradlannon on Mon Jun 29, 2009 2:29 pm

Hi All, I am slightly new to VB and I am having difficulty on creating a duplicate record and adding as a new record on same table. Here is what i'm looking for as I cannot wrap my head around how to do this.

I have a database with a dozen tables (ie. tblPage1, tblPage2, tblPage3, ..., tblPage13, tblCustomer, tblInspection ...) and I am looking to loop through all tables, and only duplicate 1 particular record (the one thats currently in focus from my combo box) and then add it as a new record.

Note: The columns in each table tblPage1,2,3... are different in that one table would have several date and result columns and another tables have less columns.

I have attached my MS Access database/vb below. The part that i'm working on is frmNewfromExisingInsp and I believe it may have something to do with Recordsetclone...

Thank you in advance for your help!!!
You do not have the required permissions to view the files attached to this post.
bradlannon
 
Posts: 1
Joined: Mon Jun 29, 2009 2:24 pm

Who is online

Users browsing this forum: No registered users and 4 guests