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 / SQL Server / ADP / July 2005

Tip: Looking for answers? Try searching our database.

displaying data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
bill - 11 Jul 2005 17:23 GMT
What is a good way of displaying data from dynamically created SQL?

The SQL is created based on user selections, so I can't have controls on a
form or report bound to fields in the resultset in advance.

The way I'm doing it now is by creating a view dynamically based on the SQL,
and then using DoCmd.OpenView.  The trouble with this approach is I need to
clean up the views periodically.

Thanks
Bill
Brendan Reynolds - 12 Jul 2005 10:33 GMT
Assign the SQL statement to the RecordSource property of the form or report.
If the fields included can change, then you will also need to assign the
names of the selected fields to the ControlSource property of the individual
controls. If the number of fields selected can change, create enough
controls to display the maximum number of fields, and toggle the Visible
property to hide unused controls.

Signature

Brendan Reynolds (MVP)

> What is a good way of displaying data from dynamically created SQL?
>
[quoted text clipped - 9 lines]
> Thanks
> Bill
 
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.