One of the tables in my database has as a key index text field the pathology number for our lab. It is in a standard format of SYYYY-0000 with YYYY the year and 0000 consecutive integers from 0001 onward through the end of the year. I am using an input mask for entry:<br>
<br>
>"S2000-"0000;0;_<br>
<br>
This works OK but the first number keyed in is ignored. (Keying in 0001 is now requiring one to type 00001.) Any idea what is going on?<br>
<br>
Second, it would be helpful if I could have a default of SYYYY-(0000+1) for the next record because these are almost always accessioned in order.<br>
<br>
Third, I have a query to check for skipped pathology numbers. It builds a table beginning with the first case of the year. One can go to the end of the table and compare the last pathology number with the number of records which should be the same. If there are fewer records than the last path number, one has to scroll through the table typically by 10s and find the missing number(s). Is there a method of detecting a skip from S2000-0555 to S2000-0557 in a text field where the output is the missing number, S2000-0556, rather than the more manual method I use now.<br>
<br>
Thanks for your help in advance.<br>
<br>
JeffreyE
<br>
>"S2000-"0000;0;_<br>
<br>
This works OK but the first number keyed in is ignored. (Keying in 0001 is now requiring one to type 00001.) Any idea what is going on?<br>
<br>
Second, it would be helpful if I could have a default of SYYYY-(0000+1) for the next record because these are almost always accessioned in order.<br>
<br>
Third, I have a query to check for skipped pathology numbers. It builds a table beginning with the first case of the year. One can go to the end of the table and compare the last pathology number with the number of records which should be the same. If there are fewer records than the last path number, one has to scroll through the table typically by 10s and find the missing number(s). Is there a method of detecting a skip from S2000-0555 to S2000-0557 in a text field where the output is the missing number, S2000-0556, rather than the more manual method I use now.<br>
<br>
Thanks for your help in advance.<br>
<br>
JeffreyE