My boss had posted this same basic message so I am sorry for the repeat it actually may have not been in the right spot. I am very new to Access so please excuse my lack of knowledge and terminology. And the length of the message. I just want to try to explain as best I can.
I have a database with about 310,000 records. Each record was assigned a sequential number at one point (we were using dBase). The field is not an autonumber field it is actually a text field. Through the years various records have been deleted. We are trying to find a way to determine which seq_no's have been deleted. My seq_no (field name) is 7 characters. The numbers range from 0000000 to 0378801. I don't need to know how many records are missing, I need to know which seq_no's are missing. So if I have 1,3,5,7,9 I would like the result to return 2,4,6,8.
I have done some research here in the forum and through the help and some books we have purchased. I found a message here that I used as my starting point (http://www.access-programmers.co.uk/forums/showthread.php?t=99515&highlight=Find+missing+numbers). With the book I figured out how to create a module and I then put this code into a procedure. I somehow got it to run after making a few adjustments. But it was taking a very long time so I cancelled. I started looking at things more and then I changed integer to Long (not sure if that is correct). Then I started thinking that this may not be right at all because seq_no is actually a text field.
I am not sure if I am even on the right path. Any help or direction anyone could offer would be very much appreciated. I'm not even sure if I am doing this in the right place. When it does return an answer, where will it be, another table, or a display? I know that sounds stupid but I have not got that far yet. I am taking home the books again tonight to do some more reading.
Thanks in advance for any help or direction.
Heather
I have a database with about 310,000 records. Each record was assigned a sequential number at one point (we were using dBase). The field is not an autonumber field it is actually a text field. Through the years various records have been deleted. We are trying to find a way to determine which seq_no's have been deleted. My seq_no (field name) is 7 characters. The numbers range from 0000000 to 0378801. I don't need to know how many records are missing, I need to know which seq_no's are missing. So if I have 1,3,5,7,9 I would like the result to return 2,4,6,8.
I have done some research here in the forum and through the help and some books we have purchased. I found a message here that I used as my starting point (http://www.access-programmers.co.uk/forums/showthread.php?t=99515&highlight=Find+missing+numbers). With the book I figured out how to create a module and I then put this code into a procedure. I somehow got it to run after making a few adjustments. But it was taking a very long time so I cancelled. I started looking at things more and then I changed integer to Long (not sure if that is correct). Then I started thinking that this may not be right at all because seq_no is actually a text field.
I am not sure if I am even on the right path. Any help or direction anyone could offer would be very much appreciated. I'm not even sure if I am doing this in the right place. When it does return an answer, where will it be, another table, or a display? I know that sounds stupid but I have not got that far yet. I am taking home the books again tonight to do some more reading.
Thanks in advance for any help or direction.
Heather