Using a Toggle Button on a Continuos Form

  • Thread starter Thread starter Accel
  • Start date Start date
A

Accel

Guest
I have a continous Form "frmMemo"
I have a yes/no check box "WordsCk" on frmMemo.
I place a Toggle Button "Toggle23" bound to WordsCk.

I placed the code below in the AfterUpdate() of frmMemo
hoping that Toggle23 Caption would change depending on WordsCk in each record.

Private Sub Form_AfterUpdate()
If WordsCk = -1 Then
Toggle23.Caption = "Selected"
Else
Toggle23.Caption = "Cleared"
End If
End Sub

The problem is that all of the Toggle Captions for all Records change at the same time.
ie. they are all either "Selected" or "Cleared"
How can I make this work

Accel
 
Do not use a continous form if you want to use the toggles. You can still show all of the [filtered?] records in a subform which could be be linked to the current record. Your form will then work the way you want with the toggle buttons and it should be more orgainized once you change your view.
 
Cheat and use something like this
 
Last edited:

Users who are viewing this thread

Back
Top Bottom