May 22, 2001 #1 jpspring Programmer Oct 6, 2000 25 GB if i've got a control of say 5 checkboxes and i want to pass all five controls to a sub-procedure to check them all, how would i do this? test check1() sub test(chkbox() as checkbox) end sub doesn't work, it expects an user-type
if i've got a control of say 5 checkboxes and i want to pass all five controls to a sub-procedure to check them all, how would i do this? test check1() sub test(chkbox() as checkbox) end sub doesn't work, it expects an user-type
May 22, 2001 #2 Beesknees Programmer Feb 27, 2001 95 GB you could try doing this Dim chk As CheckBox For Each chk In Me.Controls Call checkchk(chk) Next End Sub Private Sub checkchk(chk As CheckBox) MsgBox chk.Value End Sub Depending on the value you want to check or change or whatever change the code in the checkchk procedure Upvote 0 Downvote
you could try doing this Dim chk As CheckBox For Each chk In Me.Controls Call checkchk(chk) Next End Sub Private Sub checkchk(chk As CheckBox) MsgBox chk.Value End Sub Depending on the value you want to check or change or whatever change the code in the checkchk procedure
May 22, 2001 Thread starter #3 jpspring Programmer Oct 6, 2000 25 GB what i'm actually trying to do is pass a the whole control array to the sub-routine in one go. Cheers Upvote 0 Downvote
what i'm actually trying to do is pass a the whole control array to the sub-routine in one go. Cheers