In order to provide more information, I add the following:
I may use the following in a number of modules:
strSQL = "SELECT * FROM tblContracts WHERE ContractNumber = " &
dblContractNumber
set rs = currentdb.OpenRecordset(strSQL)
I would like to move that to a public function to be called, i.e.
set rsContractData =ContractData(dblContractNumber)
This is a simplistic example, but I just need to know if it is possible.
Thanks