Re: Using a Select Query to build a MDB table from a Fox table

From: Anders Altberg (x_pragma_at_telia.com)
Date: 05/28/04


Date: Fri, 28 May 2004 10:39:29 +0200

Good morning Eric. At it again <s>,
MS Access has a 'make-table' query with IN <database> clause you can specify
for both source and destination tables. Like this example
... FROM Table IN "" [dBASE IV; DATABASE=C:\DBASE\DATA\SALES;];

... FROM Table IN "C:\DBASE\DATA\SALES" "dBASE IV;"

RichG will have to see about turning an ADO recordset object into a table in
an MDB. As you said the IN <database> clause is specific to Access SQL.
oRecordSet = oConn.Execute("SELECT * FROM <table>")
oRecordSet.Save FileName format
format can adPersistrXML or adPersistADTG
That seems to be theonly one step way of persisting an ADO RecordSet object.
ADO doens't know any specifics of the host environment so it can't turn
around and create Access, VFP, dBase or MySQL tables as desired.

-Anders

"Eric den Doop" <ericdendoop@xspamblockxfoxite.com> wrote in message
news:#ziWfIIREHA.1276@TK2MSFTNGP11.phx.gbl...
> Hello, Anders!
>
> I think Rich wants to send the query result directly into the MDB. Does
> VFP's INTO <destination> support writing into MDB?
> --
> Eric den Doop
> www.foxite.com - The Home Of The Visual FoxPro Experts - Powered By VFP8
>
>



Relevant Pages

  • Re: cannot write to database query
    ... The select query is as shown below, I cannot change the information in the ... What are the SQL views of significant queries? ... What I failed to mention is that this database was fully functioning last ... It has a TRANSFORM clause. ...
    (microsoft.public.access.queries)
  • Re: what makes this query not updatable
    ... Then compact the database. ... It has a GROUP BY clause (totals query). ... It has a TRANSFORM clause. ... > why the more complex queries with employee details and contracts tables ...
    (microsoft.public.access.queries)
  • Re: Sort database alphabetically
    ... What I am saying is that you cannot sort the database, ... So all you need to do is add "ORDER BY Name" to your existing query. ... In the Query Designer screen use the Sort Order column to specify ...
    (microsoft.public.sqlserver.server)
  • Re: How to specify the name of the database to export to in a make table query
    ... parameter in the query rather than as something explicitly specified within ... I have tried IN [Enter filename and path]. ... >> I need to know whether it is possible to specify the name of a database ...
    (microsoft.public.access.queries)
  • Re: cannot write to database query
    ... What I failed to mention is that this database was fully functioning last ... we would need to know more about your table structure and query. ... Access MVP Allen Browne has summarized the reasons: ... It has a TRANSFORM clause. ...
    (microsoft.public.access.queries)