Displaying a field amidst text in a message box

wrweaver

Registered User.
Local time
Today, 10:17
Joined
Feb 26, 2013
Messages
75
I'm trying to display a field from a form in a message box. Is something out of order here?

MsgBox ("Your Work Order has been submitted. Your WO# is "& WorkOrderID.text" Please use the Work Order List to view the status of your Work Order. We appreciate your patience."), vbInformation

Thank you in advance!
 
MsgBox ("Your Work Order has been submitted. Your WO# is " & Me.WorkOrderID & " Please use the Work Order List to view the status of your Work Order. We appreciate your patience."), vbInformation

Don't use .Text as that makes it so the control needs the focus. Use the default .Value instead (which means you can do as I show and not include it). The ME part just makes sure Access knows that it is the object on the current form.
 
Perfect. Thanks!
 

Users who are viewing this thread

Back
Top Bottom