I know tha this is basic but I can't figure it out as I am a novice.
I am trying to get some code so that when I I just Put expr1: Func() into a field it will come back with the needed result. I have come up with:
but this isn't doing the trick:banghead:
I am trying to get some code so that when I I just Put expr1: Func() into a field it will come back with the needed result. I have come up with:
Code:
Public Function Func() As String
Dim temp As String
Dim var1 As Variant
Dim var2 As Variant
var1 = [table1]![col1]
var2 = [table2]![col2]
If Not IsNull(var1) And Not IsNull(var2) Then
temp = "Yes"
Else: temp = "No"
End If
Func = temp
End Function