Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Invalid outside procedure (xp)

    I am trying to filter a list using a procedure I have used many times. When I attempt to assign the RowSource for a combobox or run the form, the error message appears as below. The attachment also includes the code I'm using. Any suggestions would be appreciated.
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 28 Times in 28 Posts

    Re: Invalid outside procedure (xp)

    The obvious first question to ask is whether the code in your screenshot is preceded by a line Sub ...(...) or Function ...(...) and followed by a line End Sub or End Function. Sorry if this is overly naive.

  3. #3
    4 Star Lounger
    Join Date
    Sep 2002
    Location
    Stafford, Staffordshire, England
    Posts
    585
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Invalid outside procedure (xp)

    The naivete is all down to me. Thanks Hans.
    What a maroon! <img src=/S/blush.gif border=0 alt=blush width=15 height=15>
    <font color=blue><font face="Script MT Bold"><big>Rob</big></font face=script></font color=blue>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •