Any help is appreciated:
Id like to modify this code so if the dlookup returns no value, then i want to default the value in I1=0.
Id like to modify this code so if the dlookup returns no value, then i want to default the value in I1=0.
Code:
If Me.Sig1 = "" Then
Me.I1 = ""
Else
Me.I1 = DLookup("Occurance", "[Qry_Availability1]", "Date_Selected = Sig1 And [title] = '" & Text89 & "'")
End If