View Full Version : msgbox button captions


cadillac
05-09-2001, 05:26 PM
is it possible to change the caption on the buttons in the message boxes? i can get the buttons to do what i want, but they need to say things other than "ok", "cancel", and "retry".

thanks

Jack Cowley
05-09-2001, 06:42 PM
Create a form with the captions on the buttons that you want and pop that up instead of the MessageBox...

cadillac
05-10-2001, 02:14 PM
i tried that, but with the code i am using it won't work. all i want it to do is hide the text box and remove any text from it. here is the code i have in the msgbox statement now.



Dim customers As Recordset
Me![collect carrier] = Null
Me![collect carrier].Visible = False
End Sub

thanks for your help

[This message has been edited by cadillac (edited 05-10-2001).]

KevinM
05-10-2001, 03:31 PM
Is this all the code in this event procedure?
If so then it doesn't make any sense.
"Dim customers As Recordset" on it's own is of no use to you.

Also your last reply has no bearing on your first, which was about msgboxes and Jack gave you a perfevtly good reply (there is no alternative to changing msgboxes)

Please re-phrase your question.

cadillac
05-10-2001, 05:38 PM
that code was from the msgbox that i had first, but since the buttons don't say what i want i need a popup form. my problem is that i need to make the "on click" function of the popup change the visible property of the open form's text box to false. i just don't know how to tell access to do this. sorry for the mix up. i think all suggestions are great.

KevinM
05-11-2001, 01:06 AM
On the OnClick event on the button on the PopUpForm put..

Reference the main form....

[Forms]![MainFormName]![collect carrier].Visible = False

Using 'Me' means the current form, in this case is the popup form which is what you don't want.

HTH

cadillac
05-11-2001, 12:30 PM
THANK YOU!!!!
i just couldn't figure out how to reference the form.