If I have a text field and a command button, how do I declare that when the Enter task is done the command button should be activated?
Printable View
If I have a text field and a command button, how do I declare that when the Enter task is done the command button should be activated?
Enter task? you mean when someone presses Enter?
VB Code:
Private Sub Text1_KeyPress(KeyAscii As Integer) If (KeyAscii = 13) Then Command1.Enabled = True End If End Sub