anscombe - This is exactly the right idea, thanks so much
Syntax: Result = DLookup(<fieldName>,<tableName>,[criteria])
Code:
Public function getCycleDates(byval theCycle as string)gvFromDate = DLookup("fromDateFieldName","dataTableName", "yourCycleFieldName = '" & theCycle & "'" gvToDate =...