Show Message after Button Press

bluedigital

Registered User.
Local time
Yesterday, 19:53
Joined
Nov 21, 2007
Messages
20
I have a screen form with a submit button. Is there a way to show a message momentarily after the button is pressed such as "Submission Received"? It doesn't really matter if it shows as a popup or on the form itself. What is the best way to accomplish this?
 
in the onclick you can put MSGBOX "Submission Recieved" and i believe it is possible to set the time limit that it shows up. ill have to look around for the code for that though
 
Thanks

thanks buddy -that worked great! is there a way to change the size of the font in the text window?
 
not sure. you could however, create a form that looks like the msgbox and change it to look however you want it to.

in that for you can set the timerevent to a certain amount so that it will close itsself too.

so instead of having a msgbox in the onclick.you could do a docmd.openform "frmmsgbox"
 
thanks buddy -that worked great! is there a way to change the size of the font in the text window?

No, that's a Windows setting per computer. If you want a differently formatted message box you will need to create your own form and use it instead of the message box.
 
thanks guys

thanks guys, creating a new form is something that I didn't think of. How do I control how long that form stays on the screen? or would they have to click a button to move past it?
 
There is an Event on the form called ON TIMER and there is a TIMER INTERVAL on the form. If you want it to show for, say 3 seconds, you would set the timer interval to 3000 (milliseconds) and in the On timer event you would put

Me.Close acForm, Me.Name, acSaveNo

(you can use just Me.Close but I like to use the whole thing as it makes sure that nothing gets confused as to what is closing). The Me.Name you just leave exactly as I have written it.
 

Users who are viewing this thread

Back
Top Bottom