Solved

MsgBox

Posted on 2016-10-05
2
59 Views
Last Modified: 2016-10-05
I would like this message box to display the value it calculates in Counter.. what is the correct syntax.

MsgBox "'Counter'" + "Records Added Successfully"
0
Comment
Question by:Tony Crisafi
2 Comments
 
LVL 30

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
ID: 41830328
Try it like this....
MsgBox Counter, vbInformation, "Records Added Successfully"

Open in new window

0
 
LVL 18

Expert Comment

by:Roy_Cox
ID: 41830332
Is Counter a variable that is declared in the code. The message box should display after the value has been set.
MsgBox Counter & "  Records Added Successfully", VBInformation,"Completed"

Open in new window

0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

821 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