Can the ACCESS FORM do ?

  • Thread starter Thread starter oh oh wow wow
  • Start date Start date
O

oh oh wow wow

oh oh wow vvoov

Can the ACCESS FORM do when press on the sendkeys, and the
setkey will shift the control text between the active and
inactive mode?

When active the coltrol textbox could make an edition
while in inactive mode it could only show the data from
source, that is to set textbox lock and unlock.

For example, when somebody want to edit the date and it
could press a key to make the lock on it and to unlock on
it so he could only edit on date but month and year is
silent only show the current view update and when pressing
it again the month and year come to alive for edition.

Thank you very much friends,
 
Hi,


You can use the Locked property, and/or the Enabled property.
===========

Private Sub Command4_Click()
Me.Text0.Locked = Not Me.Text0.Locked
End Sub

Private Sub Command5_Click()
Me.Text2.Enabled = Not Me.Text2.Enabled
End Sub
==============


Locking allow to tab in the control, but not to change the date; Disabling a
control does not allow the control to get the focus (and change the color).
You can use both effects. Using Not, like here up, toggle the state. You
can use Toggle button rather than Command button, if you want:

==============
Private Sub Toggle6_Click()
Me.Text2.Locked = Me.Toggle6.Value
End Sub
===============


That reinforce the message ( the Toggle button changing its appearance, if
the control is locked).



Hoping it may help
Vanderghast, Access MVP
 
Back
Top