Copy records from Subform A to Subform B

J

Jane

Hello everyone

I have a main form with 2 continuous subforms.

I would like to select a number of records (say 1, 2 or 3 etc) in the 1st
subform and paste them into the 2nd subform.

I can do this with Copy and then Paste Append but I was wondering if this
could be done with VBA.

Something like (on the 1st subform)
Select the records to copy then click a button to copy them.

Then on the 2nd subform another button that says Paste

Is this possible or will be it be very complex.

Thank you

Jane Hollin
 
J

Jane

Sorry I should have said that I only want to copy some of the items on the
1st subform - I don't want to copy the StudentID but only all the other fields

Thank you
 
J

John W. Vinson

Hello everyone

I have a main form with 2 continuous subforms.

I would like to select a number of records (say 1, 2 or 3 etc) in the 1st
subform and paste them into the 2nd subform.

I can do this with Copy and then Paste Append but I was wondering if this
could be done with VBA.

Something like (on the 1st subform)
Select the records to copy then click a button to copy them.

Then on the 2nd subform another button that says Paste

Is this possible or will be it be very complex.

Thank you

Jane Hollin

Data is not stored in forms or in subforms. It's stored in Tables, and only in
Tables!

And it should NOT be stored redundantly in two different tables.

I think you need to stop, and reconsider your table structure! What is it now?
What are the recordsources of these two subforms, and what data are you trying
to copy?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top