Some problem here


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Some problem here

  1. #1
    Join Date
    Apr 2005
    Posts
    6

    Some problem here

    Code:
    If StuDeaf.Value = vbChecked Then
            Else
        StuDeaf = vbUnchecked
        End If
    When i get to the StuDeaf part it saids
    'Compile Error:

    Invalid qualifier


    What does this mean?
    I am a Deaf HNC Computing Student.

    Please Use simple english to help me to understand

  2. #2
    Join Date
    Apr 2005
    Location
    Pasig, Phil.
    Posts
    8
    Code:
    If StuDeaf.Value <> 1 then
    StuDeaf.Value = vbUnchecked
    End If
    
    or 
    If StuDeaf.Value = 1 then
    StuDeaf.Value = vbChecked
    End If
    I don't know if this helps.

  3. #3
    Join Date
    Feb 2004
    Location
    Colton, CA
    Posts
    550
    Raiders - in your example you missed .value in the else statement.

    Also, i'd use 1 (checked) and 0 (un-checked)

  4. #4
    Join Date
    Nov 2003
    Location
    Alameda, CA
    Posts
    1,737
    is StuDeaf a CheckBox?
    In that case, I do not understand your code. If it is checked, you don't take action. Otherwise (that is, unchecked) you set to unchecked, that is you do not change anything. What are you trying to do?
    Marco
    "There are two ways to write error-free programs. Only the third one works."
    Unknown

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center