Buttons

bodvoc

Red Sea Pedestrian
Local time
Today, 02:03
Joined
May 4, 2003
Messages
54
Hi All,

Is there a way of making a button on a form change after it has been clicked??

i.e. An ADD button becoming a SAVE button after its first click and then chaging back to ADD on the clicking the SAVE button??

Also making it carrie out the correct option as well...

I am doing it with Enable true / false at the mo, but I am running out of space on the form.. so one button would help me out...

Thanks all

Bodvoc
 
Bodvoc,

You can do something like this:

Code:
If Me.Caption = "Add" Then
   ' Do the Add code
   Me.Caption = "Save"
Else
   ' Do the Save code
   Me.Caption = "Add"
End If

Wayne
 
Cheers Wayne :)

Will try that later

Bodvoc
 

Users who are viewing this thread

Back
Top Bottom