Re: vb.net code to copy queries and tables from 1 ms access db to



Thanks Steve.

How would I copy a query from one Access database to another?
--
Thanks, Bob


"steve" wrote:

> Bob
>
> Connect to the DB you want to copy FROM with an OLEDBCONNECTION Object
> then....
> sql = "Insert INTO TABLE IN '" & path & "\data\Temp.mdb' Select * from
> TABLE" where TABLE is your Table Name
>
> cmd = New OleDbCommand(sql, cn)
>
> cmd.ExecuteNonQuery()
>
>
>
> Regards
>
> Steve
>
> "Bob" <Bob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:5A75BC9D-BC41-45DB-A929-0EB1CAF5AD04@xxxxxxxxxxxxxxxx
> > How do I program vb.net to copy a query or table from one MS Access
> > database
> > to another?
> >
> > I'd like to accomplish what import does when it copies Access objects from
> > another database into the database where the import action is occurring---
> > EXCEPT that I'd like to do this externally with a VB.net program.
> >
> > --
> > Thanks, Bob
>
>
>
.



Relevant Pages

  • External Data problem
    ... I want to import data from my Access Database into Excel. ... that the query it gets the info from you need to enter a start date and a ... Steve ...
    (microsoft.public.excel)
  • VB.net code to copy tables or queries from one access db to anothe
    ... How do I program vb.net to copy a query or table from one MS Access database ... Thanks, Bob ... Prev by Date: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Refining query
    ... Have you ever heard the joke about Bob ... so...if I were to create a DISTINCT query of "qryBigSet" on fields ...
    (microsoft.public.access.queries)
  • Re: Bear Cave Forum gone ?
    ... I guess I'm a bit disappointed in Bob and Steve. ... Not much real info, ... >> weekend and it will blow over without anyone actually quitting. ...
    (rec.games.pinball)
  • Re: All hail Bob (not)!
    ... casual user to get a correct result for a simple query, you only confirm that you are an embecile. ... Much more curiously though your resort to bombastic posts (whilst a feeble trait IMO for anyone professing intellectual tendencies) seems to have recent CDTzens in thrall given the deafening silence to date. ... What is it with Bob though? ...
    (comp.databases.theory)