Leo_Polla_Psemata
Registered User.
- Local time
- Yesterday, 21:45
- Joined
- Mar 24, 2014
- Messages
- 364
Hi
I am trying to create the below function.
I managed to bring the correct result, however, the field EDF, might contain data or zero or empty.
While with data or zero, i get the result i want, when empty, the function returns error.
Is there any way i could work it around ?
I have tried this but still i get error if EDF is empty
I am trying to create the below function.
I managed to bring the correct result, however, the field EDF, might contain data or zero or empty.
While with data or zero, i get the result i want, when empty, the function returns error.
Is there any way i could work it around ?
Code:
Public Function DemrCalc(DISF As Date, INME As Date, EDF As Long, sztp As String) As String
I have tried this but still i get error if EDF is empty
Code:
If IsEmpty(EDF) Or EDF = 0 Then
PA = 12
Else
PA = 12 + EDF
End If