M
Marlene McCall
Hi all:
I'm designing a table that has three numeric fields for
the dimensions of shipping boxes: depth, width, and
height. It's important that these be numeric and not text
fields for purposes of sorting, numerical calculations,
etc. I want to create a fourth field -- a text field --
with a default value that automatically concatenates the
value in those three fields with some other text elements,
as follows:
[box length]& "x" & [box width]& "x" [box height]& "
inches"
I can get this to work properly when I define it as a
calculated field in a query:
boxdimensions: [box length] & "x" & [box width] & "x" &
[box height] & " inches"
but I can't get it to work as a default value in the table
itself. I get a message that says:
"The database engine does not recognize either the
field 'box length' in a validation expression, or the
default value in the table 'Unsold Works'.
I thought it might be a problem with the spaces in the
field names (although these field names work fine in the
query) but I get the same message when I remove the spaces
from the field names.
Am I doing something wrong (and if so, what?) Or is this
type of calculation simply not allowed as a default value
in the table?
Thanks in advance for any help.
Marlene
I'm designing a table that has three numeric fields for
the dimensions of shipping boxes: depth, width, and
height. It's important that these be numeric and not text
fields for purposes of sorting, numerical calculations,
etc. I want to create a fourth field -- a text field --
with a default value that automatically concatenates the
value in those three fields with some other text elements,
as follows:
[box length]& "x" & [box width]& "x" [box height]& "
inches"
I can get this to work properly when I define it as a
calculated field in a query:
boxdimensions: [box length] & "x" & [box width] & "x" &
[box height] & " inches"
but I can't get it to work as a default value in the table
itself. I get a message that says:
"The database engine does not recognize either the
field 'box length' in a validation expression, or the
default value in the table 'Unsold Works'.
I thought it might be a problem with the spaces in the
field names (although these field names work fine in the
query) but I get the same message when I remove the spaces
from the field names.
Am I doing something wrong (and if so, what?) Or is this
type of calculation simply not allowed as a default value
in the table?
Thanks in advance for any help.
Marlene