I wrote a function in VBA which is called from an SQL proccess.
Some of the iterations of the function don't work properly so I'm trying to fix these conditions.
The bottom line is, I'm trying to compare an integer from one iteration of the function to the following one, but whenever the function gets called again it erases the integer.
Expand|Select|Wrap|Line Numbers
- DoCmd.RunSQL "UPDATE TableName_
- SET TableName.Time = RoundSeconds(TableName.Time)"
- Public Function RoundSeconds(varTime As Variant)
- .
- .
- .
- End Function
Thanks in advance,
Izhar