like Daniel says, more information required. However, if you want a text
label to appear when the button is pressed or the the text to change when the
button is pressed, you can add a text string to your form. Lets assume that
you want the text string to change what it says when you press the button.
The text label generated lets say reads "Button Not Pressed"
Right click the text label with the form in design mode and select
properties. Change the label name to something like ButtonTxt (Top box in the
all tab). you will see the caption value "Button Not Pressed"
Now right click the button and select the on click event. Underneath the
code that is already there but above the exit command type
Me.ButtonTxt.Visible = True
Me.ButtonTxt.Caption = "Button Pressed"
(This assumes that you have made the button using the wizard, the example
below uses a add new record button generated using the wizard)
Private Sub Command15_Click()
On Error GoTo Err_Command15_Click
DoCmd.GoToRecord , , acNewRec
Me.ButtonTxt.Visible = True
Me.ButtonTxt.Caption = "Button Pressed"
Exit_Command15_Click:
Exit Sub
Err_Command15_Click:
MsgBox Err.Description
Resume Exit_Command15_Click
End Sub
If you just have a button that you have cancelled the wizard on, again click
on the on click event and add the following.
Me.ButtonTxt.Visible = True 'Makes the text Visible
Me.ButtonTxt.Caption = "Button Pressed" 'Changes the text Value
As shown below
Private Sub Command17_Click()
Me.ButtonTxt.Visible = True 'Makes the text Visible
Me.ButtonTxt.Caption = "Button Pressed" 'Changes the text Value
End Sub
If this is not what you wanted to do, please explain some more.
Mike
--
An Engineers Prayer:
At the very end of the day,
when all else fails,
you have tried all
and asked everyone you know,
read the instruction manual.