Results 1 to 4 of 4
  1. #1
    rivereridanus is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    71

    Nesting sub routines in codebehind

    Hi,
    I am having a really stupid problem, and I'm not sure what I'm missing here. I am trying to call one subroutine from another, and every time it says there is a syntax error in the call statement HideSoftware(), HideWindows(), HideUNIX(), OrderStorage(),.... Is there some other way to call one subroutine from another within the page codebehind?

    Code:
     Private Sub Combo96_Change()
        If Me.Combo96.SelText = "Storage" Then
            HideSoftware()
            HideWindows()
            HideUNIX()
            OrderStorage() .... 
    End Sub
    
    Public Sub HideSoftware()
        Me.boxSoftware.Visible = False
    .....
    End Sub


  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Lose the parentheses at the end of the Function names.

  3. #3
    rivereridanus is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    71
    Oh, jeez. Thanks a lot! I've gotten used to programming in VB.net...

  4. #4
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    Quote Originally Posted by rivereridanus View Post
    Oh, jeez. Thanks a lot! I've gotten used to programming in VB.net...
    I know how that is. I was doing a lot of VB.Net before I started using Access more over the last two years. A lot of similarities - but the little differences trip you up sometimes.

    All the best!

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

Similar Threads

  1. nesting error
    By daz2932 in forum Access
    Replies: 2
    Last Post: 08-29-2011, 10:29 AM
  2. Nesting IIf query
    By peter_lawton in forum Queries
    Replies: 3
    Last Post: 02-19-2010, 10:52 AM

Tags for this Thread

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