Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

ms access function to return the text of a query

Posted on 2011-05-02
2
Medium Priority
?
223 Views
Last Modified: 2012-06-27
I know how to change the text of a query, what i need to know is how to read the contents of one so that i can alter it sql on the fly style
0
Comment
Question by:shelbyinfotech
  • 2
2 Comments
 
LVL 58
ID: 35507936

   =dbEngine.QueryDef("myquery").SQL

JimD.
0
 
LVL 58

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 2000 total points
ID: 35507947

 oops,

 =CurrentDB().QueryDefs("myquery").SQL

 working on something else at the moment...

JimD.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question