Data on a Command Button

  • Thread starter Thread starter Mariagloria
  • Start date Start date
M

Mariagloria

Hello, can anyone help me with this?

I need to display a data field on a command buttom. The
same button I'll use to display the datail.

Thanks
 
If this in Form view, assign the value of your field to the Caption of the
button in the Current event of the form.

If this is Continuous or Datasheet view, that won't work, so you will be
resorting to tricks to try to place a text box over the button to simulate a
result.
 
Mariagloria said:
Hello, can anyone help me with this?

I need to display a data field on a command buttom. The
same button I'll use to display the datail.

Thanks
 
Mariagloria said:
Hello, can anyone help me with this?

I need to display a data field on a command buttom. The
same button I'll use to display the datail.

Thanks
 
I think I´m doing somthing wrong becouse it did´t work.
This is in Form view, I assigned the value of the field
in the current event of the form but it never displayed
the field on the buttom. I think I forgot to say that
there are several fields ia xant to display in this way
inside the same form. Would you try to help me again.
Please
Mariagloria.
 
This example assigns the value of the Surname field to the caption of
Button0. If the field is Null, the caption reads: {Unknown}

Private Sub Form_Current()
Me.Button0.Caption = Nz(Me.[Surname], "{Unknown}")
End Sub

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

I think I´m doing somthing wrong becouse it did´t work.
This is in Form view, I assigned the value of the field
in the current event of the form but it never displayed
the field on the buttom. I think I forgot to say that
there are several fields ia xant to display in this way
inside the same form. Would you try to help me again.
Please
Mariagloria.
 
Back
Top