put record on button caption in continous sub form

L

Leung

hi

how can i do this?

i tried the onload event as below:

Private Sub Form_Current()
Me.Command2.Caption = Me.sbu
End Sub

but the result is all buttons showing the first record only.

how can i put a field on the button's caption?

thanks
 
M

Marshall Barton

Leung said:
how can i do this?

i tried the onload event as below:

Private Sub Form_Current()
Me.Command2.Caption = Me.sbu
End Sub

but the result is all buttons showing the first record only.

how can i put a field on the button's caption?


You can't. There is only one button (displayed multiple
times), so any property settings wull appear on all the
rows.

What you can do is fake it by using a bound text box
(overlaying it with a transparent button if you think that
works better).
 
Top