Results 1 to 2 of 2

Thread: A simple problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    3

    Arrow

    I have a simple problem, i have 4 text boxes for user input, text1, text2, text3, text4 i want the command button, cmdsave to be enabled, cmdsave.enabled, only when all 4 boxes have text in them.

    Thanks :-)



    Thanks for the help

    [Edited by JB on 09-09-2000 at 06:37 PM]
    [email protected]
    65487558
    -----------
    VS6 ENT SP4

  2. #2
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    Put the following code in the change event of all textboxes:
    Code:
    cmdSave.Enabled = (Len(Text1) > 0 And Len(Text2) > 0 And Len(Text3) >0 And Len(Text4) > 0)
    Good luck!

    [Edited by Joacim Andersson on 09-09-2000 at 05:55 PM]

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