Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Copy cross fields query to another DB

Author  Topic 

paolomanfrin
Starting Member

6 Posts

Posted - 2006-07-27 : 10:19:33
Hi, I've this cross fields query :

TRANSFORM First(Inevaso_Greg.CodOptional) AS PrimoDiCodOptional
SELECT ...
FROM Inevaso_Greg
WHERE (((Inevaso_Greg.Data_IMM) Is Null))
GROUP BY ...
PIVOT Inevaso_Greg.Progr_OPT;

and I want to modify it to store the results in a table in another Access Db. I tryed with this:

TRANSFORM First(Inevaso_Greg.CodOptional) AS PrimoDiCodOptional
SELECT ...
INTO tbl_qry_x
IN 'prova_pivot.mdb'
FROM Inevaso_Greg
IN 'C:\InevasoGreg.mdb'
WHERE (((Inevaso_Greg.Data_IMM) Is Null))
GROUP BY ...
PIVOT Inevaso_Greg.Progr_OPT;

but there is an error...
Where is the mistake?

Thanks a lot! Paolo Manfrin

Stoad
Freaky Yak Linguist

1983 Posts

Posted - 2006-07-31 : 07:42:29
Seems it's an Access limitation!

You can't use SELECT INTO along with TRANSFORM!


======================
Let me hug & kiss you...

Go to Top of Page
   

- Advertisement -