Results 1 to 2 of 2

Thread: parameters

  1. #1
    Guest

    Post

    can access pass parameters?

  2. #2
    Addicted Member
    Join Date
    Jan 1999
    Posts
    165

    Post

    Do you mean that you have created a parameterised query in Access and want to implement it through VB code?
    If so then use a Querydef and it's parameters properties to pass the param values before executing it to get the results.
    eg
    Dim paramQ As QueryDef
    Dim aRS As Recordset

    Set paramQ = CurrentDb().QueryDefs("query")
    paramQ.Parameters("ReqDate") = #12/3/99#
    Set aRS = paramQ.OpenRecordset

    Regards.

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