how to reference all records in a subform?

Sym

Registered User.
Local time
Yesterday, 20:54
Joined
Feb 21, 2015
Messages
40
quick question

I have a form with a subform. I would like a control in my parent form to uncheck a checkbox control in my subform when that field value is deleted . I can get that to work if there is only one record in my subform but it doesn't uncheck the rest. how to I reference all the records in my subform so all of them will uncheck when I delete that field value?
 
something like

Code:
 with mysubformcontrolname.form.recordset
     if not .eof then
         .movefirst
         while not .eof
              !mychkbox=false
              .movenext
         wend
     end if
 end with
 
thanks got it to work
 

Users who are viewing this thread

Back
Top Bottom