The IsNothing is a custom program that accounts for a number of different entries that a user can make that would be invalid for the field.
The issue is in the docmd.
DoCmd.OpenForm "frmClients", acNormal, , WhereCondition:=varWhere , acFormPropertySettings, acWindowNormal
When I include the...