LOUISBUHAGIAR54
Registered User.
- Local time
- Yesterday, 18:02
- Joined
- Mar 14, 2010
- Messages
- 157
Hello access programmers.
I have this very useful user defined function with the following beginning;
Public Function PbHolhrs(EntryTime As Date, FinishTime As Date, Roster As String, JobTitle As String, TypeofEmployment As String, meta As Date, Btala As String, GhadaBtala As String) As Double
This function works well when both EntryTime and FinishTime are filled in with the appropriate Date and Time. Both EntryTime and FinishTime are date fields.
When there are no entries in both EntryTime and FinishTime fields then the result which I am having is #Error. This is proving very annoying. Filtering out records in which there is no EntryTime and FinishTime is not a solution because the relevant records contain other useful data.
I have tried using an if statement with If IsNull(EntryTime) or IsNull(FinishTime) then etc. etc. but we are still getting the same #Error on the form.
Anyone can help with this matter ?
Many thanks.
Louis Buhagiar
I have this very useful user defined function with the following beginning;
Public Function PbHolhrs(EntryTime As Date, FinishTime As Date, Roster As String, JobTitle As String, TypeofEmployment As String, meta As Date, Btala As String, GhadaBtala As String) As Double
This function works well when both EntryTime and FinishTime are filled in with the appropriate Date and Time. Both EntryTime and FinishTime are date fields.
When there are no entries in both EntryTime and FinishTime fields then the result which I am having is #Error. This is proving very annoying. Filtering out records in which there is no EntryTime and FinishTime is not a solution because the relevant records contain other useful data.
I have tried using an if statement with If IsNull(EntryTime) or IsNull(FinishTime) then etc. etc. but we are still getting the same #Error on the form.
Anyone can help with this matter ?
Many thanks.
Louis Buhagiar