MikeBronner
Programmer
Hi everyone:
I've been trying the seemingly impossible: I want to set my default value of a field to a custom function defined in a module. Is this possible? What do I need to do to make it work?
I have the following in Module 'Functions':
However, when I set the default value property to '=GetNextID()' it responds that it cannot find this function.
Thanks for all you efforts .
I've been trying the seemingly impossible: I want to set my default value of a field to a custom function defined in a module. Is this possible? What do I need to do to make it work?
I have the following in Module 'Functions':
Code:
Public Function GetNextID()
GetNextID = Nz(DMax("[CSI_ID]", "TEST40_COST_STRUCTURE_INDEX"), 0) + 1
End Function
However, when I set the default value property to '=GetNextID()' it responds that it cannot find this function.
Thanks for all you efforts .