Results 1 to 6 of 6

Thread: Send value to parameter query

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    69

    Send value to parameter query

    i'm using MS-Access database...and create alot of query inside. can i sent a value for parameter query from vb?

  2. #2
    Frenzied Member
    Join Date
    Nov 2001
    Location
    Mass USA
    Posts
    1,674

    Re: Send value to parameter query

    You are better off creating your own SQL statement and using ADO.

  3. #3
    New Member
    Join Date
    Dec 2005
    Posts
    8

    Re: Send value to parameter query

    VB Code:
    1. dim rs as recordset
    2. dim st as string
    3.     st = "1" 'parameter options
    4.     rs = mydb.openrecordset ("SELECT * FROM Table1 WHERE ID = " & ST)
    5.    ......
    6.     rs.close

    hope it will help

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Send value to parameter query

    In the Database FAQ is an example, in the article "how can I add a record" (method 4).

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2006
    Posts
    69

    Re: Send value to parameter query

    thanx to all of you...but for u "si_the_geek"...thanx again, that's what i mean. actually i have search from FAQ...but i can't i so many sub-description it have...and and don't think it put under "how can I add record"

    but aniway...thanx alot

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Send value to parameter query

    It should be in a separate FAQ thread as well as being there - another one for my "to do" list!

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