Results 1 to 2 of 2

Thread: [RESOLVED] variables in query in dataset

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337

    Resolved [RESOLVED] variables in query in dataset

    I added queries to my dataset via the designer. is there a way to use variables in those queries?

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Nov 1999
    Posts
    1,337

    Re: variables in query in dataset

    Nevermind, I found my answer.

    It appears you have to edit the property of said query and insert the parameters there, then have place holders. For OLEDB I had to use the question mark

    Code:
    SELECT     Item
    FROM         Table
    WHERE     (Itemname LIKE '%' + ? + '%')
    ORDER BY ?, ?
    In case anybody else cares.

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