[AccessD] Locking a textbox based on other form controls

Christopher Jeris cjeris at fas.harvard.edu
Thu Aug 17 09:49:27 CDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

William Hindman wrote:
> ...a textbox has two properties that can be confusing ..."text" is the 
> data currently in the control while "value" is the data last saved for 
> the control ...in an unbound form you have to save the text data for it 
> to become the value data ...you might try saving the data before locking
>  the text box ...hth.

"Save" how?  I never assign to the .Text property; I initialize the control
by assigning to its .Value property.

I tried writing

  acForm![faaCustomerID].Value = acForm![faaCustomerID].Text

but got a different error:  the .Text property cannot be read unless the
control in question has the focus.  As I don't want to flicker the input
focus over a group of controls in succession, this is out too.

Gustav Brock wrote:
> This should be possible. You can even change the value of a locked 
> textbox via code.  Something else must be going on. Are you sure the
> form - not only the textboxes - is unbound?

The form's .RecordSource property is blank; that makes the form unbound, right?

peace, Chris Jeris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFE5IH35ICCNV0oGWARApicAJ442hQ6kDdro9CJP2ERl+W+SodDKwCeNyoo
pjCMD05brLe1V5E8xi3gvKw=
=qv1Z
-----END PGP SIGNATURE-----



More information about the AccessD mailing list