Hi,
I have an autonumber (without using Autonumber field) and redundancy question. I have a table with the following fields, and no PK:
tblSamples:
-Accession (FK from another table) (example of a record is M12-12345)
-RowID
-SampleID
-Sample (example of a record in here is M11-12345-1, with the last digit increasing incrementally dependant on # of samples, could be -100)
-Additional
-Test Type
....etc.
The Issue: The field SampleID is an autonumber field that I use to sort my records in queries, etc, because of leading zeros in the Sample throwing off the order (i.e. M12-12345-10 followed by M12-12345-1). I have tried to alleviate this problem, but nothing seems to place the zero where I need it, i.e. M12-12345-01) Now, I need the field RowID to generate a sequential number (just like Autonumber does) with every Sample that is entered into my LogIn Form. BUT, I want to be able to change that number (it is like a placeholder). Here's why: I use a query to pull a certain set of records from the tblSamples (from within a Date Range) into a Form in Datasheet view. The Form is sorted with my autonumber field SampleID, EXCEPT there are a few instances where some samples need to be moved around in the form because they are high priority cases. For example, they are samples with RowID 20-24, but I need them to go where samples with RowID 11-16 are located. I use this form as a basis for a Report that another person receives as they are viewing results for the samples, and I need this report to have the shifted samples in the appropriate order. It doesn't matter that the RowID is switched, because it is not a field that we search for records in. It is simply a placeholding field. Any help would be greatly appreciated! Thanks everyone!
David