Results 1 to 3 of 3
  1. #1
    GinaFlan is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    68

    Need Help with Select Case "not" equal to N/A message box

    Select Case Not Me.TxtActualBenchmark
    Case "N/A"
    Select Case Me.txtBenchmarks


    Case "At least one program every 6 months"
    Select Case Me.ComboMonth
    Case "January", "February", "March", "April", "May", "July", "August", "September", "October", "November"
    MsgBox "Please put N/A", vbOKCancel
    Case "June", "December"
    'do nothing
    End Select
    End Select
    End Select

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    Your select is jacked...you have too many selects in it...
    and you can always use CASE ELSE, or not "n/a"


    Code:
    Select Case TxtActualBenchmark
        Case "N/A"
        
        Case "At least one program every 6 months"
                Select Case Me.ComboMonth
                    Case "January", "February", "March", "April", "May", "July", "August", "September", "October", "November"
                         MsgBox "Please put N/A", vbOKCancel
                    Case "June", "December"
                         'do nothing
                  End Select
                  
        Case Else    'or   NOT "N/A"
           'SOMETHIN
    End Select

  3. #3
    GinaFlan is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2014
    Location
    Texas
    Posts
    68
    Ok Thank you

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Suppress "Error" message following "Cancel = True"
    By GraeagleBill in forum Programming
    Replies: 7
    Last Post: 03-23-2014, 05:40 PM
  2. How do i use "not equal to" in a ms query?
    By WickidWe in forum Queries
    Replies: 6
    Last Post: 12-09-2013, 04:47 PM
  3. Replies: 1
    Last Post: 10-08-2012, 09:01 AM
  4. VBA "Select Case" Troubles
    By Dalagrath in forum Programming
    Replies: 14
    Last Post: 08-04-2011, 11:38 PM
  5. ComboBox "Select" and "DLookUp"
    By witooldas in forum Forms
    Replies: 0
    Last Post: 03-23-2011, 03:31 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
  •  
Other Forums: Microsoft Office Forums