Junior1544
Technical User
i have some code i'm tring to get to work... cam some one take a look, and let me know where i'm going wrong?? i'm tring to get a total count of not only the records, but also the duration between two dates, and those two dates are [intime] and [outtime]... where am i going wrong??
btw, i'm using windows 2k and access 2k...
Dim rs As DAO.Recordset
Dim totvis As Integer
Dim addvis As Integer
Set rs = qryMonthly_Report
addvis = 0
totvis = 0
check = True
rst.MoveFirst
Do While Not REC_ID
addvis = rs.Fields.OUTDATE - rs.Fields.INDATE
totvis = totvis + addvis
rst.MoveNext
Loop
Set rst = Nothing
--Junior... thanks JHauge@jmjpc.net
Life is change. To deny change is to deny life.
btw, i'm using windows 2k and access 2k...
Dim rs As DAO.Recordset
Dim totvis As Integer
Dim addvis As Integer
Set rs = qryMonthly_Report
addvis = 0
totvis = 0
check = True
rst.MoveFirst
Do While Not REC_ID
addvis = rs.Fields.OUTDATE - rs.Fields.INDATE
totvis = totvis + addvis
rst.MoveNext
Loop
Set rst = Nothing
--Junior... thanks JHauge@jmjpc.net
Life is change. To deny change is to deny life.