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 / Modules / DAO / VBA / December 2006

Tip: Looking for answers? Try searching our database.

Placing result of query in text box on form.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andrew - 30 Dec 2006 05:33 GMT
Hi,

A simple one (I think).

How do I get the results of a query to be placed in a text box on a form.  
The Text Box is called 'Txt_Color' and the query is called qry_colors with
one field 'color'.

I will place the code in the on_load property.

Signature

Andrew

tina - 30 Dec 2006 06:04 GMT
assuming that you want to display data from only one record in the query,
you can use a DLookup() function to return the value you want from the field
in the query. either set criteria in the query so it returns only one
record, or set criteria in the function so that it finds a specific record
to return the value from. if you've never used the DLookup() function,
recommend that you read up on it in Access Help so you'll understand how it
works.

hth

> Hi,
>
[quoted text clipped - 5 lines]
>
> I will place the code in the on_load property.
 
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.