Results 1 to 1 of 1

Thread: Something strange while default value is true..

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2005
    Posts
    570

    Something strange while default value is true..

    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:
    1. Private Sub cmdadd_Click()
    2. rs.MoveLast
    3. Call Text_Unlock
    4. Call Clear_Text
    5.    
    6.     cmdSave.Enabled = True
    7.     cmdUpdate.Enabled = False
    8.     cmdSave.Default = True
    9.    
    10. txtItemNumber.SetFocus
    11.  
    12. 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:
    1. rs.MoveLast
    2. Call Text_Unlock
    3. Call Clear_Text
    4.        
    5. 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.
    Last edited by seema_s; Jul 10th, 2006 at 03:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width