Re: Insert dataset to another database



I don't have an answer to your question, but am fascinated by the dataset
term used in the Subject line of your post. Because that would do what you
need to do, albeit in a different technology.

"JPM" <jpm@xxxxxxxxxxx> wrote in message
news:uUjSA$7eHHA.4136@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

Using VB6/ADO, I'm thinking I can create a recordset and insert it into
another table in a different Jet database, all within the execution of a
single query. But, I can't seem to get it to work, even in an experiment
in Access 2K.
My sql in Access 2K:

SELECT D.lorder as Ord, A.Lorder
FROM [;Database = C:\MyDocuments\Acc2K\Wrk.mdb].OrdersData as A INNER
JOIN [;Database = C:\Access\Work\Sales06.mdb].Detl1 as D On D.Lorder =
a.lorder
WHERE ((D.fg)= 'MXX-NC' Or (D.fg)= 'MXX.NC');

If I've the Sales06 database file open and am working in it I shouldn't
have to specify that database path in the query, I'm theorizing, but
regardless whether I do or don't I get the error "No database specified in
connection string or IN string". I haven't set this up in VB yet, but I
don't see why I should bother if it won't work as an MsAccess query.
I know I mentione the idea of Inserting the result into a table of another
database; I can't even get a select across 2 Jet databases to work. BUT,
I've found examples from people like Doug Steele that apparently work.

'SELECT A.ExpenseID, A.JobID, B.Category
'FROM [;DATABASE=C:\LocumTE\LocumTEData.mdb].[Expense] AS A
' INNER JOIN [;DATABASE=C:\time&expense\time&expensedata.mdb].[Expense]
AS B
' ON A.ExpenseID = B.ExpenseID

Question is, what am I doing wrong with my version of this query?
Should I also post this to an Access newsgroup?

Thanks for any input,

Jim




.



Relevant Pages

  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: OT: SQL
    ... query processing. ... FROM Employees e, Employees m, Management mgt ... Manager and Employee Salaries. ... The scheme used does not model database files in general, ...
    (sci.logic)
  • Re: access 2003
    ... I removed the parameters from the form query source. ... boxes from the form header, events, code, etc and ran the form query source ... forms queries and the SQL because syntax of the SQL will change randomly. ... the Access 97 database, I wouldn't have thought any expressions would be ...
    (microsoft.public.access.conversion)
  • RE: Import external data - web query
    ... Your reply for my query is very extensive, this is for importing a file from ... The data source I want isn't listed in the Select Data Source dialog box. ... information used to connect to a database. ... Check your driver First, make sure you have the right ODBC driver (Open ...
    (microsoft.public.excel.misc)
  • Re: Access vs SQL
    ... ¤ .mdb file? ... are supplying a "satisfactory" connection string, ... > DAO can connect to any number of database types including Microsoft Access ... So, when you use ODBC, you are not connecting to a JET database. ...
    (microsoft.public.dotnet.languages.vb)