D
dee
From this newsgroup, I was very happy to be able to enable or disable
controls on my form, depending upon whether there was data already entered in
the control. It works very well:
Private Sub Form_Current()
'if cbo_ppt_no control(and any other) has already been selected, lock it;
otherwise leave it unlocked
Me.cbo_ppt_no.Locked = Not IsNull(Me.cbo_ppt_no)
Me.cbo_qstnaire_id.Locked = Not IsNull(Me.cbo_qstnaire_id)
End Sub
What I have noticed, however, is that even when I've populated this control,
it isn't until I navigate to another record that it becomes locked. Is there
a way to make this happen as soon as I populate the control and move on to
another control? I have made a few attempts, but they don't work.
Any help would be greatly appreciated!
controls on my form, depending upon whether there was data already entered in
the control. It works very well:
Private Sub Form_Current()
'if cbo_ppt_no control(and any other) has already been selected, lock it;
otherwise leave it unlocked
Me.cbo_ppt_no.Locked = Not IsNull(Me.cbo_ppt_no)
Me.cbo_qstnaire_id.Locked = Not IsNull(Me.cbo_qstnaire_id)
End Sub
What I have noticed, however, is that even when I've populated this control,
it isn't until I navigate to another record that it becomes locked. Is there
a way to make this happen as soon as I populate the control and move on to
another control? I have made a few attempts, but they don't work.
Any help would be greatly appreciated!