L
learning_codes
Hi,
I will like the function. Is there a way to make it a default as 0 in
the table: tblHighNum.
Public Function isIncrement(ByVal var As Variant) As Long
Dim lng as Long
lng = DLookup("Num", "tblHighNum") + 1
CurrentDb.Execute "UPDATE tblHighNum SET Num = " _
& lng
isIncrement = lng
End Function
Your help would be much appreciated.
Thanks.
I will like the function. Is there a way to make it a default as 0 in
the table: tblHighNum.
Public Function isIncrement(ByVal var As Variant) As Long
Dim lng as Long
lng = DLookup("Num", "tblHighNum") + 1
CurrentDb.Execute "UPDATE tblHighNum SET Num = " _
& lng
isIncrement = lng
End Function
Your help would be much appreciated.
Thanks.