Finding a record in a recordset

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do I copy some of the fields in MyTable to MyNewTable where
MyTable.RecordID = MyForm.RecordID. The field names are common to both tables
and there are lots of them. Is there a spiffy way to do this without making
each MyNewTableField = MyTableField? Something like, for each field in
MyTable, stick it in the correspondingly named field in MyNewTable. Any help
would be greatly appreciated.
 
If the fields are identical (same data types, in the same order), you can
use the wildcard.

1. Create a query using MyTable.

2. Drag the * from the table into the grid.

3. Change it to an Append query (Append on Query menu.)
Access asks what table to append to.

4. Drag RecordID into the grid.
Clear the RecordID from the Append row.
In the criteria row, enter the limiting value if you want to restrict the
query.

5. Run the query.
 

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

Back
Top