A real begineer
Registered User.
- Local time
- Today, 04:58
- Joined
- Nov 4, 2000
- Messages
- 74
I am trying to set up a module to create a query field that counts the number of records.
the module I have coded reads:
Function GetNextCounter(pvar As Variant) As Long
Dim Counter
Counter = 0
' Initialize variable.
While Counter < 20 ' Test value of Counter.
Counter = Counter + 1 ' Increment Counter.
Wend ' End While loop when Counter > 19.
but this seems to return 0 in the query?
the module I have coded reads:
Function GetNextCounter(pvar As Variant) As Long
Dim Counter
Counter = 0
' Initialize variable.
While Counter < 20 ' Test value of Counter.
Counter = Counter + 1 ' Increment Counter.
Wend ' End While loop when Counter > 19.
but this seems to return 0 in the query?