December 9th, 1999, 10:39 AM
Hi all,
Here's my problem
Given
A Form containing
A/ a textbox (txt_Name = Name of a company)
B/ a command button (cmd_Save = Save button)
C/ a lostfocus event for this textbox (txt_Name)
private Sub LostFocus_txt_Name()
' Checks if company name is filled in
' & then enables the command buttton
cmd_Save.Enabled = false
If (len(Trim(txt_Name)) = 0) then
Exit Sub
End If
cmd_Save.Enabled = true
End Sub
Problem
You have to click 2 times on the command button to activate the
Click event on this command button !!!
Is there a solution to this problem ???
Thanks.
Jordan
Here's my problem
Given
A Form containing
A/ a textbox (txt_Name = Name of a company)
B/ a command button (cmd_Save = Save button)
C/ a lostfocus event for this textbox (txt_Name)
private Sub LostFocus_txt_Name()
' Checks if company name is filled in
' & then enables the command buttton
cmd_Save.Enabled = false
If (len(Trim(txt_Name)) = 0) then
Exit Sub
End If
cmd_Save.Enabled = true
End Sub
Problem
You have to click 2 times on the command button to activate the
Click event on this command button !!!
Is there a solution to this problem ???
Thanks.
Jordan