Index: /main/waeup.sirp/trunk/src/waeup/sirp/jambtables/util.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/jambtables/util.py	(revision 5450)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/jambtables/util.py	(revision 5451)
@@ -46,10 +46,15 @@
     return (applicant_data, entries[0])
 
-def application_exists(access_code):
-    """Check whether an application for the given access code already exists.
+def application_exists(identifier):
+    """Check whether an application for the given identifier already
+       exists.
 
+       `identifier` can be an access code or a JAMB registration
+       number. For JAMB screened applicants we use the JAMB
+       registration number as key, for other applicants we use the
+       access code.
     """
     site = grok.getSite()
-    if access_code in site['applications'].keys():
+    if identifier in site['applications'].keys():
         return True
     return False
