Get data from a query that is not attached to a form

D

Diana

Hello,

I have a form with a button appending data from Excel to
Access. I have set primary keys in the Access table in a
way that no dublicate values can be appended from Excel.
The warnings are turned off.

What I would like to do is check the count of lines in
the main table before and after the export. My guess is
that I need to use recordset but I don't know all the
steps.

Thank you for all your help.
Diana
 
K

Kelvin

How are you going to show the before and after? Once you perfrom the append
the old record count will not be kept. You can create a simple count query
to create a table with the before count, then an append query to add the
after count. You can then call up the info anytime you need. Otherwise you
would have to save the information in a global variable before the query is
run, but then this will only last until you close the database.

Kelvin Lu
 

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