Integer inside a MsgBox? (VBA Access 2000)

Is it possible to place an integer inside a MsgBox I want to cue the user to add "x" pages of labels before printing this report (labels)... with x referring to the number of pages of the report.

Thanks!




Answer this question

Integer inside a MsgBox? (VBA Access 2000)

  • massod

    Your probably going to need to convert it to a string

    Example

    dim i as integer = 1
    msgbox("Test Text" & cstr(i))

    But as said this is not the forum for VBA questions.

    VBA Forums

    http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=74&SiteID=1


  • SMaia

    These forums aren't for VBA questions...

    But the short answer is yes, you can create a string using a variable something like:

    "Be sure to add " & x & " pages of labels before printing."



  • Integer inside a MsgBox? (VBA Access 2000)