Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / March 2008

Tip: Looking for answers? Try searching our database.

Insert a query result into a form or text box

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
scubadiver - 25 Mar 2008 11:13 GMT
Hello,

I have a combo box of queries so when I choose a query it opens separately.

I found a database with a dynamic form that places a query result into a
text box. It is similar to what I would like but my queries are "totals"
queries with calculated percentages.

So what I would like is to use the after update event of the combo box to
place the query result into a text box.

What is the best way to go about doing this?

cheers
scubadiver - 25 Mar 2008 11:51 GMT
Probably not clear enough.

I have a list of queries and I want to choose which query I show in the text
box.

thanks.
Klatuu - 25 Mar 2008 19:28 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.