Results 1 to 5 of 5
  1. #1
    ducecoop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    41

    Limit to Arguments?

    This code I have been using for awhile and a few users are now telling me it sometimes work and sometimes does not.

    Code:
    Private Sub Form_Activate()
    
       SendKeys "{F9}"
      
    
            Me.lblconditional.Visible = _
           Not ((Me!stuHighSchool Or Me!stuHighSchoolNA) And (Me!stuTranscripts Or Me!stuTranscriptsNA) And (Me!stuApplication Or Me!stuApplicationNA) And (Me!stuAgreement Or Me!stuAgreementNA) And (Me!stuEssay Or Me!stuEssayNA) And (Me!stuStanford Or Me!stuStanfordNA) And (Me!stuStudentOrientation Or Me!stuStudentOrientationNA) And (Me!stuAprenda Or Me!stuAprendaNA) And (Me!stuMAT Or Me!stuMATNA))
    End Sub
    If there is no limit then I have some other issue to track down
    For some reason I thought the limit (if there is one (was 32 arguments) but I may be remembering that from excel functions)

    tia

    dave
    Last edited by ducecoop; 11-01-2010 at 01:52 PM.

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by ducecoop View Post
    Code:
    Private Sub Form_Activate()
    
       SendKeys "{F9}"
      
    
            Me.lblconditional.Visible = _
           Not ((Me!stuHighSchool Or Me!stuHighSchoolNA) And 
    
    (Me!stuTranscripts Or Me!stuTranscriptsNA) And (Me!stuApplication Or Me!stuApplicationNA) And 
    (Me!stuAgreement Or Me!stuAgreementNA) And (Me!stuEssay Or Me!stuEssayNA) And 
    (Me!stuStanford Or Me!stuStanfordNA) And (Me!stuStudentOrientation Or Me!stuStudentOrientationNA) And 
    (Me!stuAprenda Or Me!stuAprendaNA) And (Me!stuMAT Or Me!stuMATNA))
    
    End Sub
    why don't you put that entire thing into a single SELECT CASE conditional statement???it wouldn't be as messy and cumbersome.

    have you also considered the fact that users are almost always mistaken? a general rule to follow as a developer is to cover 'anything and everything', because eventually a user will come along and figure out how to mess it up. Of course that is not always true, but having years of experience troubleshooting user issues, I can say that in all that time, 1% of the issues that were ticketed were legitimate bugs that required attention. The rest of the time it was either A) user not spending time to 'read the manual', or B) user not paying attention.

  3. #3
    ducecoop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    41
    Quote Originally Posted by ajetrumpet View Post
    why don't you put that entire thing into a single SELECT CASE conditional statement???it wouldn't be as messy and cumbersome.

    have you also considered the fact that users are almost always mistaken? a general rule to follow as a developer is to cover 'anything and everything', because eventually a user will come along and figure out how to mess it up. Of course that is not always true, but having years of experience troubleshooting user issues, I can say that in all that time, 1% of the issues that were ticketed were legitimate bugs that required attention. The rest of the time it was either A) user not spending time to 'read the manual', or B) user not paying attention.
    Thanks for the reply,

    I always test an issues reported by users and did so in this case. There is an issue.
    Before I dig in to this in several locations I wanted or rewrite code I want to make sure that my initial thought (Limit on Arguments) was not the cause.

    Thanks

    Dave

  4. #4
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    I don't think those are arguments dave. It is just an expression that evaluates out to a result.

    arguments are something different. (I think).

  5. #5
    ducecoop is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Oct 2010
    Posts
    41
    Then I guess I have other problems with it.

    Thanks so much

    Dave

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

Similar Threads

  1. Skipping optional arguments
    By canfish in forum Programming
    Replies: 3
    Last Post: 08-19-2010, 01:35 PM
  2. HELP - Invalid number of arguments
    By jgelpi16 in forum Programming
    Replies: 3
    Last Post: 07-22-2010, 09:38 AM
  3. Limit Records
    By EHittner in forum Forms
    Replies: 1
    Last Post: 05-03-2010, 10:37 AM
  4. Open form arguments
    By nkenney in forum Forms
    Replies: 4
    Last Post: 04-10-2009, 08:40 PM
  5. OpenForm Action and Arguments
    By nkenney in forum Forms
    Replies: 9
    Last Post: 04-05-2009, 09:33 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