Writing current record to new table

G

Guest

This seems like it wouldn't be too hard, but for the life of me I can't think of a clever way to do this

I want a button on a form that takes the record currently being displayed and puts it in a table by itself. Every time the button is pushed the current record data is overwritten onto that table, which will always have one record

Seems easy, right? Any thoughts? Once I get it there I can export it and automatically fill out an Excel spreadsheet, which is my end goal

thanks
- S
 
I

Immanuel Sibero

Hi Stefan,

Just conceptually, you could execute an append query in the OnClick event of
your command button.
This Append query would simply insert a record into your other table using
the values from the fields on your form.

Are you trying to select certain records from a table and export them to
Excel?

You could add a flag field (with False default value) in your table and
while you're browsing through the records using your form, select the record
by setting the flag field to True. Then you would have a command button that
execute Transferspreadsheet based on a query that contains only those
records with the flag field as True.

HTH
Immanuel Sibero



Stefan Johnson said:
This seems like it wouldn't be too hard, but for the life of me I can't
think of a clever way to do this.
I want a button on a form that takes the record currently being displayed
and puts it in a table by itself. Every time the button is pushed the
current record data is overwritten onto that table, which will always have
one record.
Seems easy, right? Any thoughts? Once I get it there I can export it and
automatically fill out an Excel spreadsheet, which is my end goal.
 

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