Solved Creating four textboxes with different colours relating to a lookup table fields (1 Viewer)

Sam Summers

Registered User.
Local time
Today, 14:52
Joined
Sep 17, 2001
Messages
939
Hi everyone,

All i am trying to create four boxes on a form, each with a different colour (Green, Blue, Grey and Purple).

The user will select the current colour relating to the item which will be the current colour code for the period.

I have created a 'Colour' Table but currently do not know how to implement this.

Any pointers would be great.

Many thanks in advance
 

mike60smart

Registered User.
Local time
Today, 14:52
Joined
Aug 6, 2017
Messages
1,904
Hi Sam

What is supposed to happen when the user clicks in the Green Box?
 

Sam Summers

Registered User.
Local time
Today, 14:52
Joined
Sep 17, 2001
Messages
939
Hi Sam

What is supposed to happen when the user clicks in the Green Box?
Hi Mike, its just stored in the record until the user selects a new colour for the next period
 

mike60smart

Registered User.
Local time
Today, 14:52
Joined
Aug 6, 2017
Messages
1,904
Hi Sam
So the 4 Colour Boxes are on a Main Form
Then a Subform has a number of records.
When the user selects a Colour it applies that Colour to the Current Record in the Subform?
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 21:52
Joined
May 7, 2009
Messages
19,230
demo of using color table
 

Attachments

  • ColorCode.accdb
    640 KB · Views: 291

Sam Summers

Registered User.
Local time
Today, 14:52
Joined
Sep 17, 2001
Messages
939
Hi Mike and Arnel i should be able to create what i want from Arnel's attachment Thank you both very much.
I will post when i have solved it
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 09:52
Joined
Feb 19, 2002
Messages
43,233
Since you only need a single value for color, the options are mutually exclusive. Therefore, instead of using four separate controls, you need to use ONE control with four choices. You can use a combo which won't be pretty or you can use an option group if the colors are fixed.
 

Sam Summers

Registered User.
Local time
Today, 14:52
Joined
Sep 17, 2001
Messages
939
Hi All of you and thank you Pat too.
I went with Arnels method as the user has to see the colour to select the current colour where the period (6 months usually) may vary at each end of its implementation.
So all i used was the colours with no fixed periods.

Thank you all again for your help as always!
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 09:52
Joined
Feb 19, 2002
Messages
43,233
I guess you don't know what an option group is. We could have explained it. Now you will always have four fields to check rather than one.
 

Users who are viewing this thread

Top Bottom