merlynsdad
Programmer
I have a table made from a make-table-qry. I'm using calculated data from the table in VBA to calculate variable values, which I would like to add to the table as additional columns. For instance
All of the rst1 references are to the table data. I would like to put the value of datDuration back into the table as TotalIdle. Is this possible, and if so, how is it done?
If the square peg won't fit in the round hole, sand off the corners.
Code:
Do While rst1![event_type] = 4
datDuration = datDuration + rst1![duration]
If rst1![event_type] <> 4 Then Exit Do
rst1.MoveNext
Loop
If the square peg won't fit in the round hole, sand off the corners.