Hi,
For line one, this should work:
If Left(SourceFields("gname"), 4) = "self" Then
I'm not entirely sure how you need to use ISNULL, but my guess is that the attached code might be what you are looking for.
Let me know if that looks right, or if you need something different.
Thanks,
Steve Endow
Dynamics GP Certified Trainer
Dynamics GP Certified Professional
1:
2:
3:
4:
5:
6:
7:
|
If IsNull(SourceFields("gname")) Then
CurrentField = ""
ElseIf Left(SourceFields("gname"))= "Self" Then
CurrentField = SourceFields("billaddr1")
Else
CurrentField = SourceFields("gaddr1")
End if
|