JKwan
06-27-2007, 12:08 PM
Is there a way that I can get a consistent record count? What I mean is that if I step thru my code, I get the correct record count everytime, however, if I let my code execute, it consistently reports incorrect record count!! This is the code that I am using:
Dim frm As Form
Dim Dehydrators As Control
Dim Separators As Control
Dim Treaters As Control
Set frm = Forms("foundation")
Set Dehydrators = frm.Dehydrators
Set Separators = frm.Separators
Set Treaters = frm.Treaters
NumberOfTreaters = Treaters.Form.Recordset.RecordCount
NumberOfDehy = Dehydrators.Form.Recordset.RecordCount
NumberOfSeparators = Separators.Form.Recordset.RecordCount
Foundation is the main form, the others are sub forms with linking to an ID number. This is driving me a little nutty!
Dim frm As Form
Dim Dehydrators As Control
Dim Separators As Control
Dim Treaters As Control
Set frm = Forms("foundation")
Set Dehydrators = frm.Dehydrators
Set Separators = frm.Separators
Set Treaters = frm.Treaters
NumberOfTreaters = Treaters.Form.Recordset.RecordCount
NumberOfDehy = Dehydrators.Form.Recordset.RecordCount
NumberOfSeparators = Separators.Form.Recordset.RecordCount
Foundation is the main form, the others are sub forms with linking to an ID number. This is driving me a little nutty!