G
Guest
Hopefully a quick and easy question here...
I've got a number of fields in a form I would like to format based on values
in a different field. Lets say that each field in my form is a process and
the value of the field is a sequence number that tells what order the fields
will be processed in. In separate hidden fields (editable by double clicking
the object field) is a value of either 1, 2, 3 or null (1 for Process
Pending, 2 for Process Running or 3 for Process Complete).
Lets take my RawStock field for example. Stock cutting is generally the
first process to a job, so the value of this field is usually going to be 1.
What I would like to do is change the StockStatus (1,2 or 3 for Pending,
Running or Closed), and change the backcolor of the RawStock field based on
the value in the StockStatus field rather than the RawStock field.
I believe this can be done using the Expression portion of Conditional
Formatting, but I am really not very good with expression syntax. Ive tried
Me.StockStatus=1 or Me.StockStatus.Value=1 for expressions for formatting but
can't seem to get results. Any help in this matter would be greatly
appreciated. For more details on what I'm working with and how I came about
this problem see my post a few threads down titled "Cont. Form Backcolor by
Record" Thanks again to missinglinq, I've almost got this doing exactly what
I want it to do.
Thanks in advance,
Jack
I've got a number of fields in a form I would like to format based on values
in a different field. Lets say that each field in my form is a process and
the value of the field is a sequence number that tells what order the fields
will be processed in. In separate hidden fields (editable by double clicking
the object field) is a value of either 1, 2, 3 or null (1 for Process
Pending, 2 for Process Running or 3 for Process Complete).
Lets take my RawStock field for example. Stock cutting is generally the
first process to a job, so the value of this field is usually going to be 1.
What I would like to do is change the StockStatus (1,2 or 3 for Pending,
Running or Closed), and change the backcolor of the RawStock field based on
the value in the StockStatus field rather than the RawStock field.
I believe this can be done using the Expression portion of Conditional
Formatting, but I am really not very good with expression syntax. Ive tried
Me.StockStatus=1 or Me.StockStatus.Value=1 for expressions for formatting but
can't seem to get results. Any help in this matter would be greatly
appreciated. For more details on what I'm working with and how I came about
this problem see my post a few threads down titled "Cont. Form Backcolor by
Record" Thanks again to missinglinq, I've almost got this doing exactly what
I want it to do.
Thanks in advance,
Jack