I am creating a new MS Access application to replace a very old DOS app (1984). It has a field called Form Number. I exported the existing data and imported it in Access. This field comes across as a text because in contains not only Forms, like 1,9,20,340, but also forms named 99R and CS2000.
Here is my problem... the client wants the new database to sort the records for a report 'numerically' on the Form field. The existing application sorts by what appears to be Numeric based on position. Here is an example...
1
3
7
16
20
101
304
A04
4000
6999
G321
This is the strangest thing I have ever seen... and I explained to the client that I've never seen an application sort this way. They really don't care and want it to sort this way anyway!!! Help!
What can I do... I thought about leaving it text and creating a second field in the report query with a function to pad leading zeros based on the length of the field... would this work? I'm not sure how to write this.
Can I somehow Right justify this field in the query and then sort based on that?
Any help would be greatly appreciated... Ane really, I do understand that it never should have been done this way but telling the client that is not an option...
Here is my problem... the client wants the new database to sort the records for a report 'numerically' on the Form field. The existing application sorts by what appears to be Numeric based on position. Here is an example...
1
3
7
16
20
101
304
A04
4000
6999
G321
This is the strangest thing I have ever seen... and I explained to the client that I've never seen an application sort this way. They really don't care and want it to sort this way anyway!!! Help!
What can I do... I thought about leaving it text and creating a second field in the report query with a function to pad leading zeros based on the length of the field... would this work? I'm not sure how to write this.
Can I somehow Right justify this field in the query and then sort based on that?
Any help would be greatly appreciated... Ane really, I do understand that it never should have been done this way but telling the client that is not an option...