hey guys I know there is a way to loop this but i cant get it
I keep getting an invalid use of null, if anyone could help that would be great.
Thanks
Code:
town1.Value = DLookup("City", "tblpatients", "CaseNumber = '" & CN1.Value & "'")
town2.Value = DLookup("City", "tblpatients", "CaseNumber = '" & CN2.Value & "'")
town3.Value = DLookup("City", "tblpatients", "CaseNumber = '" & CN3.Value & "'")
.
.
.
town20.Value = DLookup("City", "tblpatients", "CaseNumber = '" & CN20.Value & "'")
Thanks