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 / New Users / July 2006

Tip: Looking for answers? Try searching our database.

Copying a query and its table

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Perag - 06 Jul 2006 10:03 GMT
Hello,

I have a query that i need a second version off but with different data.
This means I need to copy the existing query. It will look exactly the same
as before but I need to connect it to a new table to get the new data. The
data will have the exact format as before.

So farI have tried to copy the query and then using the designview to alter
the property of that table in the alias menu so that the name change to the
new datatable. But it seems that the query is still looking up in the old
datatable.  

I also tried to delete the old tables and inserting the new tables but then
i get an error saying that cannot run query because its part of an aggregated
function. Eventhough the table I added is exactly the same but with a new
name.

any ideas ?

all help apretiated

Perag
John Spencer - 06 Jul 2006 12:56 GMT
Try the following.

-- Copy the old query
-- Open the new query and alias the existing (old) table using the table
properties.  Make it something like XXXX
-- Switch to the sql view (View: SQL) and find where the existing table is
aliased and replace the old table Name with the new table name
-- Switch back to the design view (View: Design), click on the table (XXXX)
and change its alias property to the name of the new table.

> Hello,
>
[quoted text clipped - 23 lines]
>
> Perag
Perag - 07 Jul 2006 08:23 GMT
Thanks alot worked like a charm! :)

Perag

> Try the following.
>
[quoted text clipped - 33 lines]
> >
> > Perag
 
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.