Hi!
Put the code in any Module that isn't a form module and use the Public Keyword at the beginning:
Public YourFunction(JulianDate As Date) As Date
etc.
Then is SQL you use:
Select YourFunction(JulianDate) As StandardDate
Or, in the query design view, put this in the Field line:
StandardDate: YourFunction(JulianDate)
hth
Jeff Bridgham
Purdue University
Graduate School
Data Analyst