Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2005
    Posts
    28

    Unanswered: Passing parameter in pass through query..

    Hello Forum - Can someone help me in guiding how to pass parameter to a Pass Through Query. Here is my pass-through query that works fine when user-inputs are hard coded:

    :quote:
    Select FieldA, FieldB, FieldC, OraFunchtion(FieldD, FieldE, FieldF) as FunField
    FROM TableA
    WHERE FieldA=[UserInputForFieldA] and
    FieldB=[UserInputForFieldB] and
    FieldC=[UserInputForFieldC] and
    FieldD= (SELECT MAX(AP.APDATE) FROM TableA AP FROM TableA
    WHERE AP.FieldA=[UserInputForFieldA] and
    AP.FieldB=[UserInputForFieldB] and
    AP.FieldC=[UserInputForFieldC]
    )
    :unquote:

    How do I run this query where user is able to input the data and backend Oracle server can display results that has a OraFunction too?

    Please note that I am not master in Access Programming. So helping me w/ step-by-step approach would greatly be appreciated.

    Thanks

    Sunil

  2. #2
    Join Date
    Apr 2005
    Posts
    28
    Please help...

  3. #3
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Pass Through Queries are essentially just a text string that is passed to the destination specified in the connection string. The string is not parsed - you c an pass whatever the heck you like, Access does not care. It is the destination server that parses and executes your string. It may then return a resultset that Access can then use.

    So - your problem is that Oracle has no idea WTF [UserInputForColumnC] is. You must incorporate explicit values in your string.
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

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