+ Reply to Thread
Results 1 to 4 of 4

Compile error: Invalid qualifier with inputbox

  1. #1
    Registered User
    Join Date
    02-01-2005
    Posts
    62

    Compile error: Invalid qualifier with inputbox

    I am filtering duplicate data in a table based on a column that the user can select. I would like an inputbox to open, then ask the user which column to filter. If there is only 1 column selected, run the code, otherwise cancel (it would be ideal if a msgbox opened and told them they selected more than 1 column, then open the inputbox again).

    Below is my code, but I am getting a Complile error: invalid qualifier error before the code even starts. The error is on the ElseIf line.

    Any help? Thanks in advance!

    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203
    I do not get a compile time error, I get a run time error. Not sure why the difference.

    But, I think it will work if you replace the problem line with this:

    ElseIf FilterRange.Columns.Count > 1 Then

  3. #3
    Forum Contributor
    Join Date
    11-29-2003
    Posts
    1,203

    Now I know why I did not get the compile time error

    When I added the Dim for FilterRange, I then got the compile time error.

    Below shows one way to test for valid selection and loop back.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-01-2005
    Posts
    62
    Thank you! I can't believe I missed that!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1