msgbox button captions (1 Viewer)

cadillac

Registered User.
Local time
Today, 16:59
Joined
May 9, 2001
Messages
34
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

Registered User.
Local time
Today, 21:59
Joined
Aug 7, 2000
Messages
2,639
Create a form with the captions on the buttons that you want and pop that up instead of the MessageBox...
 

cadillac

Registered User.
Local time
Today, 16:59
Joined
May 9, 2001
Messages
34
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

Registered User.
Local time
Today, 21:59
Joined
Jun 15, 2000
Messages
719
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

Registered User.
Local time
Today, 16:59
Joined
May 9, 2001
Messages
34
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

Registered User.
Local time
Today, 21:59
Joined
Jun 15, 2000
Messages
719
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

Registered User.
Local time
Today, 16:59
Joined
May 9, 2001
Messages
34
THANK YOU!!!!
i just couldn't figure out how to reference the form.
 

Users who are viewing this thread

Top Bottom