R
raylopez99
I hesitate to ask this because it's in the manual somewhere, but since
I'm programming successfully in Visual Basic in Access without any
books (I do have a C#/C++.NET background), I'll ask:
In Access forms, how do you bind a control to another control? I can
bind a control to data in the database, and I can bind a control to
another control that depends on data in the database, but I haven't
yet figured out how to bind a control to another control that is not
bound to the underlying database.
Concrete example (how to do this): a textbox is bound to a checkbox
that is NOT bound to any field in the database, so that when a user on
a form checks the checkbox, something is reflected in the textbox (say
the textbox properties are Unlocked, etc).
What properties do you change in each control (textbox and checkbox)
to make this happen?
As a bonus question, optionally, please explain what extensions do you
put in the code if the two forms are in seperate forms? I've figured
out what "Me." is ('this' keyword in C# / C++), and the extension
"parent" in a parent form / child subform, so if it's possible please
include this information as well. So, my bonus question, to make the
problem more general, is to assume the two controls are in seperate
forms.
Many thanks,
RL
I'm programming successfully in Visual Basic in Access without any
books (I do have a C#/C++.NET background), I'll ask:
In Access forms, how do you bind a control to another control? I can
bind a control to data in the database, and I can bind a control to
another control that depends on data in the database, but I haven't
yet figured out how to bind a control to another control that is not
bound to the underlying database.
Concrete example (how to do this): a textbox is bound to a checkbox
that is NOT bound to any field in the database, so that when a user on
a form checks the checkbox, something is reflected in the textbox (say
the textbox properties are Unlocked, etc).
What properties do you change in each control (textbox and checkbox)
to make this happen?
As a bonus question, optionally, please explain what extensions do you
put in the code if the two forms are in seperate forms? I've figured
out what "Me." is ('this' keyword in C# / C++), and the extension
"parent" in a parent form / child subform, so if it's possible please
include this information as well. So, my bonus question, to make the
problem more general, is to assume the two controls are in seperate
forms.
Many thanks,
RL