Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8170919
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:17:34+00:00 2026-06-06T21:17:34+00:00

I am trying to create a Pass-through SQL statement from my MS Access 2003

  • 0

I am trying to create a Pass-through SQL statement from my MS Access 2003 (Yeah, I know it’s oldschool but my hands are tied :/) to an Oracle DB on a Server.

Long story short, the server-table contains freezer models, where each model exists 1 to 5 times with the ID prefixed with a value indicating it’s condition. The problem is, that I have to fetch all “versions” of a freezer. In Access I would write something like:

SQL = "SELECT Right(FREEZERS.ID,4) FROM FREEZERS WHERE Right(FREEZERS.ID,4) = '" & myID & "'"

But this triggers an error in my Pass-through query to Oracle. Is it even possible to write expressions like this in a pass-through query?

I am using vba and a QueryDef with a connectstring to the server (which works fine if i strip the Right()-expression), and then open a recordset with the result.

Thanks on beforehand, Viggo

EDIT:
Ah, sorry..

Took one last Googling and the Answer popped up:

Apparently Oracle has a different syntax for some of these functions. In this case I found that Oracle has a SUBSTR-function and a LENGTH-function, fixing my problem..

To others in search: The key is searching for Oracle syntax rather than Pass-through syntax..

Source:
http://peoplesofttipster.com/2008/08/18/substringing-and-oracle-sql-basic-trick/

Hope it can help someone else 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T21:17:36+00:00Added an answer on June 6, 2026 at 9:17 pm

    As described in the above:

    In Pass-Through queries the SQL language of the server.. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to pass through POST an array of checkboxes but this time it's
I'm trying to pass a dynamic, user created object through AJAX to some C#.
I am currently trying to create a function which will allow me to pass
I'm trying to create a function that will simply allow me to pass an
Trying to create a black line in my view to separate text blocks but
Trying to create a new Dedicated Cache Role in Windows Azure but get the
I am trying to create a batch file that removes tel: from a number
I'm trying to create a new string Attribute using Weka's Java API... Reading through
I am confused on how I can create an SQL statement containing colons. I
I'm trying to create a string to pass to a PHP file with numerous

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.