E
Earthling
I want to enter an expression into my Default Value under my field
properties
within the design view of my table.
In English:
If the previous record has the same "product ID" number then by default
make the result FALSE, otherwise TRUE for the given field name value.
What this does is compare the previous Product ID (data type is Number) -
foreign key
to the Product Table ID (data type is AutoNumber) of the previous record.
Thus if the Product ID is the same number for the previous record "Product
Table ID minus 1"
of Product ID, then this means that our Product ID is not the first new
record entered.
Problem:
The Field Names are made up of multiple text so how can I enter an
expression
and also subtract 1 from the value the field name represents ?
The following didn't work:
If [Product Table ID -1] = [Product ID] Then False
Please help me write the expression for the default value.
Thanks,
Martians
properties
within the design view of my table.
In English:
If the previous record has the same "product ID" number then by default
make the result FALSE, otherwise TRUE for the given field name value.
What this does is compare the previous Product ID (data type is Number) -
foreign key
to the Product Table ID (data type is AutoNumber) of the previous record.
Thus if the Product ID is the same number for the previous record "Product
Table ID minus 1"
of Product ID, then this means that our Product ID is not the first new
record entered.
Problem:
The Field Names are made up of multiple text so how can I enter an
expression
and also subtract 1 from the value the field name represents ?
The following didn't work:
If [Product Table ID -1] = [Product ID] Then False
Please help me write the expression for the default value.
Thanks,
Martians