msgbox combine

kitty77

Registered User.
Local time
Yesterday, 23:59
Joined
May 27, 2019
Messages
719
How do I add these two together in on line?

If ([standard] <> "apple") And ([frequency] = "annual") Then strDocName = "report1"

msgbox "all good"
 
Use a colon to combine lines
Code:
If (Me.standard <> "apple") And (Me.frequency = "annual") Then strDocName = "report1": msgbox "all good", vbInformation
 
Thanks
 

Users who are viewing this thread

Back
Top Bottom