Re: SELECT Queries. A straight answer.
- From: Rick Brandt <rickbrandt2@xxxxxxxxxxx>
- Date: Sun, 21 Dec 2008 23:12:20 GMT
On Sun, 21 Dec 2008 14:49:52 -0800, strongsilentone wrote:
Hi!
I'm a little bit frustrated as I know this should not be a difficult
task. I'm trying to execute queries from VBA without much luck so far.
I use doCmd.openQuery ("Query Name") and it runs without error, but It
doesn't seem willing to give me the results its returned either. I
can't seem to find a comprehensive tutorial on this subject (it should
hardly need to be all that comprehensive anyway). Any chance somebody
can steer me down the right path?
"Executing" a query normally refers to action queries (UPDATE, APPEND,
DELETE). "Opening" a query normally refers to a SELECT query.
Which is it you want to do? From code, Action queries would be the norm.
Please clarify "give me the results". Do you want the rows from a SELECT
query or the number of rows affected from an Action query?
--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
.
- Follow-Ups:
- Re: SELECT Queries. A straight answer.
- From: strongsilentone
- Re: SELECT Queries. A straight answer.
- References:
- SELECT Queries. A straight answer.
- From: strongsilentone
- SELECT Queries. A straight answer.
- Prev by Date: SELECT Queries. A straight answer.
- Next by Date: Re: SELECT Queries. A straight answer.
- Previous by thread: SELECT Queries. A straight answer.
- Next by thread: Re: SELECT Queries. A straight answer.
- Index(es):
Relevant Pages
|
Loading