How to count and display the number of records imported into an Access Table.

  • Thread starter John S via AccessMonster.com
  • Start date
J

John S via AccessMonster.com

How would you go about counting just the number of records imported into an
existing populated Access table? My import process using the Spreadsheet
Transfer method works perfect. I would like though a user who does this
import to be able to see a message telling her the number of records that
actually went into this table using the import Spreadsheet Transfer method.

Is there a way to program Access to display to a user the number of records
that were imported into an existing table using the Spreadsheet Transfer
method?
 
T

TC

This VBA code will display the number of records added to table BLAH:

(untested)

dim x as long
x= dcount("*", "BLAH")
(do something here)
x = dcount("*", "BLAH") - x
msgbox x & " records added"

Not sure what that has to do with Access Security, the topic of this
particular newsgroup ...

HTH,
TC
 

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