I'm trying to pass values from fields within a form to a function shown below;
Function AllDataEnteredForTrade(blTradeSelected As Boolean, stTradePerson As String, dtWkStartDate As Date, intNumDays As Integer) As String
If blTradeSelected = True And Len(stTradePerson) > 0 And stTradePerson <> "None" Then
AllDataEnteredForTrade = "AllEntered"
End If
End Function
But when a field has a null value it can't be passed to the appropriate function variable, is there anyway around this?
Function AllDataEnteredForTrade(blTradeSelected As Boolean, stTradePerson As String, dtWkStartDate As Date, intNumDays As Integer) As String
If blTradeSelected = True And Len(stTradePerson) > 0 And stTradePerson <> "None" Then
AllDataEnteredForTrade = "AllEntered"
End If
End Function
But when a field has a null value it can't be passed to the appropriate function variable, is there anyway around this?