G
Guest
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.
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.