Text of a RecordSource

M

Martin

Hi,

ich have a Report with a recordsource.
the source is a query.

when call the function Me.RecordSource, i get the queryname.
is there a possibility to get the text of this query ??
And how ??


thx a lot
Martin
 
R

Rick Brandt

Martin said:
Hi,

ich have a Report with a recordsource.
the source is a query.

when call the function Me.RecordSource, i get the queryname.
is there a possibility to get the text of this query ??
And how ??


thx a lot
Martin

CurrentDB.QueryDefs("QueryName").sql
 
P

Pat Hartman \(MVP\)

This might be a little more generic. I didn't test it though:

CurrentDB.QueryDefs(Me.RecordSource).sql
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top