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 / Queries / April 2008

Tip: Looking for answers? Try searching our database.

Inner Join Query Questions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Wetmore - 26 Apr 2008 02:01 GMT
The VBA documentation says that UNION queries can use SQL statements as data sources.
The documentaion on JOIN queries implies that tables must be used as data sources in JOIN queries.
If this is correct, what is the most efficient way to create a table in VBA and move a recordset into it?

Thanks,
Dave
Rick Brandt - 26 Apr 2008 02:48 GMT
> The VBA documentation says that UNION queries can use SQL statements
> as data sources.

All queries use SQL statements.  SOME queries can also be represented in the
graphical query designer.  UNION queries happen to be one of the categories
that cannot be thus the only way to build them is in SQL view of the query
designer.

> The documentaion on JOIN queries implies that tables must be used as
> data sources in JOIN queries.

Incorrect.  A query that uses a join can consist of tables, saved queries,
or SQL statements.

> If this is correct, what is the most efficient way to create a table
> in VBA and move a recordset into it?

I suppose the "most efficient" in the sense that it requires the least
amount of code to type would be to execute a SQL statement that is a
make-table query.  Most efficient in terms of system resources or speed
would be difficult to say positively without actual testing.

As described, it is unusual to need or want to "move a recordset into" a
table.

Signature

Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt   at   Hunter   dot   com

 
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



©2009 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.