Results 1 to 3 of 3

Thread: Double Indexes

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2000
    Location
    England
    Posts
    18

    Question

    Can anyone help, I want to search a recordset using 2 search criteria. The way I do it is:-

    Recordset.seek "=", Var1, Var2

    But I can't remember how to set up my indexes.

    I think it's somthing like :-

    Recordset.index = "Index 1", "Index 2"

    But it doesn't work Please Help !!!

  2. #2
    New Member
    Join Date
    Aug 2005
    Posts
    14

    Re: Double Indexes

    thats true. but you should set up your indexes in your database table like indexes.

  3. #3
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Double Indexes

    Why are you replying to a vague post from 5 years ago?

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

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



Click Here to Expand Forum to Full Width