H
Henry
I am using Access 97.
I have a table named "Stocks".
This table has 2 fields named "LongShort" (Text) and "Shares" (Number).
The field LongShort can receive either "L" or "S".
I wish to force the entry of a positive number into Shares if LongShort
contains "L".
I wish to force the entry of a negative number into Shares if LongShort
contains "S".
I have entered this Validation Rule into the field "Shares":
("LongShort"='S' And "Shares"<0) Or ("LongShort"='L' And "Shares">=0)
It does not work. In fact, it prevents me from entering any value into Shares.
Can anyone help?
Thank you,
Henry
I have a table named "Stocks".
This table has 2 fields named "LongShort" (Text) and "Shares" (Number).
The field LongShort can receive either "L" or "S".
I wish to force the entry of a positive number into Shares if LongShort
contains "L".
I wish to force the entry of a negative number into Shares if LongShort
contains "S".
I have entered this Validation Rule into the field "Shares":
("LongShort"='S' And "Shares"<0) Or ("LongShort"='L' And "Shares">=0)
It does not work. In fact, it prevents me from entering any value into Shares.
Can anyone help?
Thank you,
Henry