Solved

MsgBox

Posted on 2016-10-05
2
56 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 29

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …

803 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