Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

successful import message

Status
Not open for further replies.

jeff1

IS-IT--Management
Nov 8, 2000
49
US
I have a button that initiates the import of a spreadsheet into an existing table.
I would like to let the user know that the import was successful with a message box of somthing equivelant. Below is part of the code that I am using to import the spreadsheet.

On Error GoTo ErrCommonDialog
If fraImportType = 1 Then
DoCmd.TransferSpreadsheet acImport, , strAccessTable, strExcelWorkBook, booFieldNames

Thanks in advance for all your help.
 
after the DoCmd.Transfer....enter this:

msgbox("Import was successful")

Have you thought about creating an ODBC link to the Excel doc. This way you wouldn't have to import the data and your users are always sure to have a current version of the data.

just a thought.

hope this helps you.
 
Thanks alot. This works great.

The data imported is actually individual receipts downloaded from the web.

Thanks again fro your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top