Probably not clear enough.
I have a list of queries and I want to choose which query I show in the text
box.
thanks.
If your query returns just one value, why not just use a DLookup?

Signature
Dave Hargis, Microsoft Access MVP
> Probably not clear enough.
>
> I have a list of queries and I want to choose which query I show in the text
> box.
>
> thanks.
scubadiver - 26 Mar 2008 09:44 GMT
Hello,
I know I haven't explained myself very well
This is the form I looked at.
http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='DynamSubFrm.mdb'
It is not too far from what I would like to have. The VBA code uses one SQL.
My list of queries have different SQLs
I have made some progress
> If your query returns just one value, why not just use a DLookup?
>
[quoted text clipped - 4 lines]
> >
> > thanks.
Klatuu - 26 Mar 2008 14:41 GMT
I am getting an error trying to go to the link you supplied.

Signature
Dave Hargis, Microsoft Access MVP
> Hello,
>
[quoted text clipped - 17 lines]
> > >
> > > thanks.
scubadiver - 26 Mar 2008 14:40 GMT
I managed to work it out. I had used a text box instead of a subform!
> If your query returns just one value, why not just use a DLookup?
>
[quoted text clipped - 4 lines]
> >
> > thanks.