Solved

Success Message at end of VBA

Posted on 2011-09-08
3
266 Views
Last Modified: 2012-05-12
I currently have a button in a form in Access that allows me to import a series fo excell sheets into the database.

I would simply like to add a message at the end of the VBA code stating " Files Imported Successfully"

Is there a simple way to do this?

Thank you

0
Comment
Question by:jtr209
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 4

Accepted Solution

by:
AgeOfEmpires earned 500 total points
ID: 36505032
MsgBox "Files Imported Successfully"

Of course, this simple statement ignores any error checking of the actual import process, but this statement will display your message
0
 
LVL 75
ID: 36505044


You mean with a Message box ?

' you import code .....

Msgbox " Files Imported Successfully"


what code do you have now
mx
0
 
LVL 4

Expert Comment

by:grogman
ID: 36506387
If you would like a message that can dismiss itself after a specified period of time without requiring the users to click anything, you could try this:

http://blogs.technet.com/b/heyscriptingguy/archive/2005/03/14/how-can-i-automatically-dismiss-a-message-box-after-a-specified-length-of-time.aspx
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question