Hi all
I have a continuous form with check box. I have created two buttons. one to select all and one to unselect all.
I have button SelectAll with following onclick event
With Me.RecordsetClone
Do Until .EOF
.Edit
!ShortList = True
.Update
.MoveNext
Loop
End With
I have button UnSelectAll with the following onclick event
With Me.RecordsetClone
Do Until .EOF
.Edit
!ShortList = False
.Update
.MoveNext
Loop
End With
These buttons work individually if the form is just opened.
However if i click selectall and then click unselect all (anticipating what the user may do) in succession it doesnt work. ie all still selected
I tried save after end with statement, Ive tried requery the form but neither work
I basically want an undo if the user selects all accidently. Is there a better way of achieving this.
thanks
I have a continuous form with check box. I have created two buttons. one to select all and one to unselect all.
I have button SelectAll with following onclick event
With Me.RecordsetClone
Do Until .EOF
.Edit
!ShortList = True
.Update
.MoveNext
Loop
End With
I have button UnSelectAll with the following onclick event
With Me.RecordsetClone
Do Until .EOF
.Edit
!ShortList = False
.Update
.MoveNext
Loop
End With
These buttons work individually if the form is just opened.
However if i click selectall and then click unselect all (anticipating what the user may do) in succession it doesnt work. ie all still selected
I tried save after end with statement, Ive tried requery the form but neither work
I basically want an undo if the user selects all accidently. Is there a better way of achieving this.
thanks