That's not really the correct way to call a function or sub in a module. Assuming you've not made the function/sub Private, and assuming the name is not duplicated in another sub/function, all you do is this:
Result = DoRecs(txStudyID, txtDate, txtDoType)