M
Megaton
Hello
Let me explain my real problem a bit first. I have got 4 fields (Received,
HandedOut, Storage and Office). When I receive something I put them to the
storage and when I hand out something, I take them from the office. I also
need to move stuff between storage and office. But I only do one transaction
at a time. For instance,
if [Received]=40, then [Storage]=40; //received 40 stuff and put them in
storage
if [HandedOut]=30, then [Office]=-30; //took 30 stuff from office and handed
out
if [Storage]=-50, then [Office]=50; //moved 50 stuff from storage to office
To reduce the chance of inputing a wrong number, I would like to link these
fields together so that one field can generate the correct number based on
the other inputs.
My first question is: How can I set up the [Storage] field so that it can
take manual input to generate a number for [Office] field and in the mean
time, it can be auto-generated from [Received]?
Second question: How to set up the validation rule for [HandedOut] field to
meet these constrains (1. must be non-negative. 2. must be 0 if [Received]>0)?
Thank you so much.
Let me explain my real problem a bit first. I have got 4 fields (Received,
HandedOut, Storage and Office). When I receive something I put them to the
storage and when I hand out something, I take them from the office. I also
need to move stuff between storage and office. But I only do one transaction
at a time. For instance,
if [Received]=40, then [Storage]=40; //received 40 stuff and put them in
storage
if [HandedOut]=30, then [Office]=-30; //took 30 stuff from office and handed
out
if [Storage]=-50, then [Office]=50; //moved 50 stuff from storage to office
To reduce the chance of inputing a wrong number, I would like to link these
fields together so that one field can generate the correct number based on
the other inputs.
My first question is: How can I set up the [Storage] field so that it can
take manual input to generate a number for [Office] field and in the mean
time, it can be auto-generated from [Received]?
Second question: How to set up the validation rule for [HandedOut] field to
meet these constrains (1. must be non-negative. 2. must be 0 if [Received]>0)?
Thank you so much.