M
Michael
I have a main form with a subform that is continuous and displays records
selected by a query using a key from the main form. It works fine.
One of the fields in the subform is a Yes/No field with a toggle button to
set it. As such it works fine.
I wanted to alter the caption on the button depending on whether it is
depressed or not. I have tried various methods but all seem to result in ALL
of the toggle buttons in the subform changing their captions rather then the
one on the specific row.
I have tried adding a field (txttogCaption) to the query which is set with
an IIF in the query depending on the value of the Yes/No field - just
running the query it populates the query field correctly depending on the
row value.
However, when applying it to the form in the OnCurrent event as follows it
sets all row button captions to the value of the first one.
Forms!F_frmPhotoListDisplay!F_frmPhotoListDisplaysubform2!togPersonPicturedOrAssociatedWith.Caption
= _
Forms!F_frmPhotoListDisplay!F_frmPhotoListDisplaysubform2!txttogCaption
I have also tried putting IIF(True,"Pic","Ass") into the Caption property of
the toggle control.
How can I get it to only update the caption on the button on the specific
row that is changed?
Help would be appreciated.
Michael.
selected by a query using a key from the main form. It works fine.
One of the fields in the subform is a Yes/No field with a toggle button to
set it. As such it works fine.
I wanted to alter the caption on the button depending on whether it is
depressed or not. I have tried various methods but all seem to result in ALL
of the toggle buttons in the subform changing their captions rather then the
one on the specific row.
I have tried adding a field (txttogCaption) to the query which is set with
an IIF in the query depending on the value of the Yes/No field - just
running the query it populates the query field correctly depending on the
row value.
However, when applying it to the form in the OnCurrent event as follows it
sets all row button captions to the value of the first one.
Forms!F_frmPhotoListDisplay!F_frmPhotoListDisplaysubform2!togPersonPicturedOrAssociatedWith.Caption
= _
Forms!F_frmPhotoListDisplay!F_frmPhotoListDisplaysubform2!txttogCaption
I have also tried putting IIF(True,"Pic","Ass") into the Caption property of
the toggle control.
How can I get it to only update the caption on the button on the specific
row that is changed?
Help would be appreciated.
Michael.