PC Review


Reply
Thread Tools Rate Thread

How to copy records from One Table & paste to another Table from F

 
 
=?Utf-8?B?SXJzaGFkIEFsYW0=?=
Guest
Posts: n/a
 
      24th Feb 2005
I want to copy records from One Table & paste to another Table from Form on
LabelClick Event

I have a form "InvFormA", based on Table "InvTabA" with a Subform
"InvFormB" based on Table "InvTabB"

There is also a Table named "DelvNote" which has all fields same like
InvTAbB except few.

On the Form "InvFormA" there is a Label on which Click Event I want the
following to be done :

Select and copy records of "PartNo", "PartDesc","Qty","UPrice" and
"ExtPrice" from Table "DelvNote" WHERE "DelvNo" = Me.DeliveryNo

Open the RecordSet of Table "InvTabB" and paste the records where the Fields
Label matches and the condition should InvNo=Me.InvNo

Then requery my Subform.

In short summary, Generaly to deliver some material Delivery note has been
made.
Later Invoice is made. So I have to re-type all the details of the Delivery
note in the Invoice Subform. As all the fiels of Delviery note Subform
matches with Invoice Subform, I generally open the Delviery Note Subform,
copy the records manually. Close The delivery note, Open the Invoice, go to
the Invoice subform and Paste it. It works as all the field labels are same.

The same I want to do by VB Code.

Can any of the professional can advise me.



 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      24th Feb 2005
Irshad

From your description, it seems like you are trying to put copies of fields
into more than one table. While this might be the only way to keep records
related to each other if you were using a spreadsheet, Access is a
relational database.

If you try to use Access as if it were a spreadsheet, you will give both
yourself and Access many headaches as you try to work around what Access is
not designed to do. If you use Access relationally (i.e., use
well-normalized data structure), you will find that it has many quite useful
functions and features.

--
Good luck

Jeff Boyce
<Access MVP>

"Irshad Alam" <(E-Mail Removed)> wrote in message
news:C1A10ABB-6018-44B4-8D92-(E-Mail Removed)...
> I want to copy records from One Table & paste to another Table from Form

on
> LabelClick Event
>
> I have a form "InvFormA", based on Table "InvTabA" with a Subform
> "InvFormB" based on Table "InvTabB"
>
> There is also a Table named "DelvNote" which has all fields same like
> InvTAbB except few.
>
> On the Form "InvFormA" there is a Label on which Click Event I want the
> following to be done :
>
> Select and copy records of "PartNo", "PartDesc","Qty","UPrice" and
> "ExtPrice" from Table "DelvNote" WHERE "DelvNo" = Me.DeliveryNo
>
> Open the RecordSet of Table "InvTabB" and paste the records where the

Fields
> Label matches and the condition should InvNo=Me.InvNo
>
> Then requery my Subform.
>
> In short summary, Generaly to deliver some material Delivery note has been
> made.
> Later Invoice is made. So I have to re-type all the details of the

Delivery
> note in the Invoice Subform. As all the fiels of Delviery note Subform
> matches with Invoice Subform, I generally open the Delviery Note Subform,
> copy the records manually. Close The delivery note, Open the Invoice, go

to
> the Invoice subform and Paste it. It works as all the field labels are

same.
>
> The same I want to do by VB Code.
>
> Can any of the professional can advise me.
>
>
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to copy linked table and paste as local table =?Utf-8?B?Q2xpdmU=?= Microsoft Access 2 7th Sep 2007 10:56 AM
Copy Records from Access Database table(more than 5 lakh records in this table) to Excel Sheet divya Microsoft Excel Programming 1 26th Oct 2006 12:12 PM
Copy a Single Field From Multiple Records & Paste Into Another Table justinschmidt@gmail.com Microsoft Access Form Coding 1 18th Mar 2006 11:38 PM
Linked Table, cannot copy/paste new records paul@pcfountain.com Microsoft Access 1 17th Feb 2006 07:27 PM
copy records an paste them in another table =?Utf-8?B?ZmlsbzY2Ng==?= Microsoft Access VBA Modules 4 16th Mar 2005 10:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:21 AM.