Hard Light Productions Forums

Off-Topic Discussion => General Discussion => Topic started by: Stealth on February 07, 2005, 01:02:55 pm

Title: microsoft access anyone?
Post by: Stealth on February 07, 2005, 01:02:55 pm
i have a checkbox... and when i click that checkbox, i want it to enable a field ('enable' and 'unlock' the field) so that i can enter it in

for example

[ ] Program 1 *text box*
[ ] Program 2 *text box*

so that when i click the box next to Program 1, it enables the "text box" to be typed in... (it'll be greyed out before)

how do i do that?
Title: microsoft access anyone?
Post by: Stealth on February 07, 2005, 01:42:02 pm
Help me dammit

...please
Title: microsoft access anyone?
Post by: Liberator on February 07, 2005, 02:15:58 pm
It's been a while...is there a way to associate the text box with the check box? ...sorry, I don't have a database to screw around with and figure it out for ya(assuming I could find my text book)
Title: microsoft access anyone?
Post by: Thorn on February 07, 2005, 05:15:40 pm
Ahhh.. gimme a sec.. .I think I remember how to do this...
[edit] Bah.. Access keeps freezing on me. Sorry. Can't help.
Title: microsoft access anyone?
Post by: Stealth on February 07, 2005, 05:50:34 pm
yeah i did it another way :-/

thanks for trying to help though Thorn and Liberator :)
Title: microsoft access anyone?
Post by: Admiral Nelson on February 07, 2005, 06:35:06 pm
Use the OnClick event of the checkbox to set the enabled property of the textbox

Me!txtEnabled.Enabled = False

or true as the case may be.