Hi,
The following is the problem. Please help me out.
When I click on "Add" (cmdAdd) button, it executes all the instructions written in the code.
VB Code:
Private Sub cmdadd_Click() rs.MoveLast Call Text_Unlock Call Clear_Text cmdSave.Enabled = True cmdUpdate.Enabled = False cmdSave.Default = True txtItemNumber.SetFocus End Sub
But when I tried setting cmdAdd button's default value to yes and press the enter button, it executes only partial instructions.
It is not executing the following lines from the above code:
VB Code:
rs.MoveLast Call Text_Unlock Call Clear_Text txtItemNumber.SetFocus
What is the reason? Please let me know to solve this problem.
Regards,
Seema_s
I DID NOTHING BUT NOW IT IS WORKING FINE.


Reply With Quote