Could anyone tell me how to pass the value of one field in a query back to a function? I.e. I have the following function:
Public Function InitialDate() As Date
InitialDate = DateSerial(2001, 7, 1)
MsgBox [InitialDate]
End Function
I would like to assign the "InitialDate" to get its value from a field in a query instead of what I have in the above example.
Any help is greatly appreciated.
Thanks
Public Function InitialDate() As Date
InitialDate = DateSerial(2001, 7, 1)
MsgBox [InitialDate]
End Function
I would like to assign the "InitialDate" to get its value from a field in a query instead of what I have in the above example.
Any help is greatly appreciated.
Thanks