Hello to all
I have a large Excel file from where I will be importing data to a table.
This file has two main categories, COM and RES.
Entries can either belong to a COM or to a RES, never both.
I am looking for a primary key generated by Access 2010, which will consist of the COM or RES prefix, along with a simple sequential number. The prefix would be decided by what the Field "CATEGORY" would be for each entry.
For example, the primary key ID field would be something like:
COM-01
COM-02
RES-01
COM-03
RES-04
RES-05
RES-06
COM-04
etc...
I don't really mind if the numbers for each COM or RES are sequential or not, but it would be could to have it that way. What I really need is that the primary key begins with COM or RES, depending on what each entry's category is.
One approach would be to create two separate tables, one for the RES category and one for the COM.
The other is to include both categories under the same table.
What are your views on this? Is it at all possible?
Thank you in advance.
I have a large Excel file from where I will be importing data to a table.
This file has two main categories, COM and RES.
Entries can either belong to a COM or to a RES, never both.
I am looking for a primary key generated by Access 2010, which will consist of the COM or RES prefix, along with a simple sequential number. The prefix would be decided by what the Field "CATEGORY" would be for each entry.
For example, the primary key ID field would be something like:
COM-01
COM-02
RES-01
COM-03
RES-04
RES-05
RES-06
COM-04
etc...
I don't really mind if the numbers for each COM or RES are sequential or not, but it would be could to have it that way. What I really need is that the primary key begins with COM or RES, depending on what each entry's category is.
One approach would be to create two separate tables, one for the RES category and one for the COM.
The other is to include both categories under the same table.
What are your views on this? Is it at all possible?
Thank you in advance.