Greetings,
I have an issue which I'm hoping to get some help with. There is a DynaSet form which is tied to a table called: tblBasicInfo.
Everything works as expected except for a listbox. I have placed a checkbox next to it, to allow users to select all the entries:
Code:
Private Sub chkAllSpecialties_Click()
Dim i As Integer
Dim selection As Boolean
selection = chkAllSpecialties.Value
For i = 0 To lstSpecialties.ListCount - 1
lstSpecialties.SetFocus
lstSpecialties.Selected(i) = selection
Next i
End Sub
This works as expected. But I can't seem to get the selected values stored in the Control Source field (which is a Long Text field).
The values don't get stored even if I manually select values. The values for all other fields (including the checkbox) get stored and populate upon form load as expected.
Any insight with this issue is greatly appreciated.
I have an issue which I'm hoping to get some help with. There is a DynaSet form which is tied to a table called: tblBasicInfo.
Everything works as expected except for a listbox. I have placed a checkbox next to it, to allow users to select all the entries:
Code:
Private Sub chkAllSpecialties_Click()
Dim i As Integer
Dim selection As Boolean
selection = chkAllSpecialties.Value
For i = 0 To lstSpecialties.ListCount - 1
lstSpecialties.SetFocus
lstSpecialties.Selected(i) = selection
Next i
End Sub
This works as expected. But I can't seem to get the selected values stored in the Control Source field (which is a Long Text field).
The values don't get stored even if I manually select values. The values for all other fields (including the checkbox) get stored and populate upon form load as expected.
Any insight with this issue is greatly appreciated.