how to change the color of a text box in a form (1 Viewer)

mana

Registered User.
Local time
Today, 07:16
Joined
Nov 4, 2014
Messages
265
hello

i have a conitius form in ms access and in it i have a text box. i want to know if it possible to change the color of the text box to the color that i want ?
can you help me please?
thank you
 

bob fitz

AWF VIP
Local time
Today, 15:16
Joined
May 23, 2011
Messages
4,732
I believe it is possible to make such changes by changing the Background Color property of the text box either in design mode or using code at run time. However, I think the change would be visible in every record. Not sure if that is what you want.

Edit:
Sorry guys, didn't see the reply by jdraw.
 

mana

Registered User.
Local time
Today, 07:16
Joined
Nov 4, 2014
Messages
265
hello

but i want this just for a specific row but not for all of them.
 

Minty

AWF VIP
Local time
Today, 15:16
Joined
Jul 26, 2013
Messages
10,389
Conditional formatting is the only way on a continuous form.
 

mana

Registered User.
Local time
Today, 07:16
Joined
Nov 4, 2014
Messages
265
hello

can you guide me more what i can do here?
what should i write in conditional formattion?
i want just to change the background of the focused textbox just in a row not in all of the rows
thank you
 

mana

Registered User.
Local time
Today, 07:16
Joined
Nov 4, 2014
Messages
265
hello

i want to say if the activecontrol is true then the color of the active control will be red but i don't know how to say it
can you help me please?

If Screen.ActiveControl = True Then

what to write here?

End If
 

BitsOfBytes

Registered User.
Local time
Today, 10:16
Joined
Apr 14, 2015
Messages
15
Create macro for on focus event of that box. Use 'set property' to change back color? Opposite on loss of focus?
 

Users who are viewing this thread

Top Bottom