If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
autonumber - function
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. |
#2
|
|||
|
|||
autonumber - function
|
Thread Tools | |
Display Modes | |
|
|