W
William K
Greetings,
I have a table with the following fields:
OrderNumber
OrderLocation
OrderID
OrderDate
I want the OrderNumber field to be an autogenerated
primary key based on the OrderLocation and OrderID fields.
So if the Order Location were in Michigan the
OrderLocation Field would contain MI. The OrderID field
would be an Auto Increment number of say "1". Therefore
the OrderNumber should be MI1.
I tried to set this up by making the field OrderLocation a
text field with a defualt value of MI. I made the OrderID
field an Autoincrement number field. Then I made the
OrderNumber field a text field with the following default
value =[OrderLocation]&[OrderID]. However, when I try to
save the table, I am told that the reference fields are
not valid.
What am I doing wrong? Thanks in advance for your help.
William K.
I have a table with the following fields:
OrderNumber
OrderLocation
OrderID
OrderDate
I want the OrderNumber field to be an autogenerated
primary key based on the OrderLocation and OrderID fields.
So if the Order Location were in Michigan the
OrderLocation Field would contain MI. The OrderID field
would be an Auto Increment number of say "1". Therefore
the OrderNumber should be MI1.
I tried to set this up by making the field OrderLocation a
text field with a defualt value of MI. I made the OrderID
field an Autoincrement number field. Then I made the
OrderNumber field a text field with the following default
value =[OrderLocation]&[OrderID]. However, when I try to
save the table, I am told that the reference fields are
not valid.
What am I doing wrong? Thanks in advance for your help.
William K.