J
J
Hey, How can you tell I'm a part-time programmer, my first question was in
January 2009....
I was provided this code by MS, a prior question.
'I have a table that is an auto-number field that creates sequential ticket
#'s.
During testing I created several records in my table that were not real so I
deleted from the table.
The result is gaps between #'s.
I want to query on specific ticket #'s and if they do not exist, return a
[Not Found] dialogue box that allows you to enter another ticket #. It's
possible that the 2nd ticket # cannot be found either, but I'll worry about
that later.' IT's LATER....
This is the code:
= iif( 1 = DCount("*", "Incident_Table_MT", "Incident_IDNumb=" & [IT #]),
[IT #], [IT does not exist])
Oddly, it only takes the IT # on the 2nd pass. So if I enter IT # 2010,
dialogue box 'IT does not exist' comes up, I enter 2010 AGAIN and it presents
in the form.
Thoughts.
January 2009....
I was provided this code by MS, a prior question.
'I have a table that is an auto-number field that creates sequential ticket
#'s.
During testing I created several records in my table that were not real so I
deleted from the table.
The result is gaps between #'s.
I want to query on specific ticket #'s and if they do not exist, return a
[Not Found] dialogue box that allows you to enter another ticket #. It's
possible that the 2nd ticket # cannot be found either, but I'll worry about
that later.' IT's LATER....
This is the code:
= iif( 1 = DCount("*", "Incident_Table_MT", "Incident_IDNumb=" & [IT #]),
[IT #], [IT does not exist])
Oddly, it only takes the IT # on the 2nd pass. So if I enter IT # 2010,
dialogue box 'IT does not exist' comes up, I enter 2010 AGAIN and it presents
in the form.
Thoughts.