Could you PLEASE take 5 minutes to look at this code? I can not get the IF statements to execute.
If "[Data-Basic.SSN]" Then
stLinkCriteria = "E_Month ='" & Me![Month] & "' and " & "[E_Year] = '2003'"
Else:
If "[Month]" Is Null Then
stLinkCriteria = "[DATA-Basic].SSN ='" & Me![Name] & "' and " & "[E_Year] = '2003'"
Else:
stLinkCriteria = "[DATA-Basic].SSN ='" & Me![Name] & "' and " & "[E_Month] = '" & Me!Month & "'"
End If
End If
The system just passes over the if statements, or if I try to change something such as
If "[Month]" Is Null Then to If "[Month] = ' ' " Then
...the system tells me there is a type mismatch. I am lost here. This is the first time I have tried to do a combined search from two combo boxes, and run a report from it.
THANKS!
H. Jessen
"Now I know more, and I feel dummer"
If "[Data-Basic.SSN]" Then
stLinkCriteria = "E_Month ='" & Me![Month] & "' and " & "[E_Year] = '2003'"
Else:
If "[Month]" Is Null Then
stLinkCriteria = "[DATA-Basic].SSN ='" & Me![Name] & "' and " & "[E_Year] = '2003'"
Else:
stLinkCriteria = "[DATA-Basic].SSN ='" & Me![Name] & "' and " & "[E_Month] = '" & Me!Month & "'"
End If
End If
The system just passes over the if statements, or if I try to change something such as
If "[Month]" Is Null Then to If "[Month] = ' ' " Then
...the system tells me there is a type mismatch. I am lost here. This is the first time I have tried to do a combined search from two combo boxes, and run a report from it.
THANKS!
H. Jessen
"Now I know more, and I feel dummer"