MsgBox to display field value

Brian900

Registered User.
Local time
Today, 21:27
Joined
Oct 10, 2002
Messages
51
I want a MsgBox to display a value from the current form when a command button is click. For example; Field3 is a field that calculates Field1 and Field2. When Command1 is clicked I want a MsgBox to display "Your total amount is: [field3's value]."

Any ideas?

Thanks, Brian.
 
In the click event of the Command button:

Code:
Msgbox("Your Total Amount is " & YourControlName.text),vbinformation

Replace YourControlName with the name of the control which you want to display the text from.

HTH,
Patrick
 

Users who are viewing this thread

Back
Top Bottom