Re: Import fields

Tech-Archive recommends: Fix windows errors by optimizing your registry



You can use an Append query statement to import specified fields into your
table.

Example:

strSql = "INSERT INTO MyTable ( CusID, Company ) " & _
"SELECT Customers.CustomerID, Customers.CompanyName " & _
"FROM Customers IN 'C:\northwind.mdb';"
dbEngine(0)(0).Execute strSql, dbFailOnError

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jay" <libertysmith@xxxxxxxxxx> wrote in message
news:Xag_f.502$_c1.471@xxxxxxxxxxxxx
Is there an event procedure that will import a table from an access
database
to another access database and only 4 fields instead of all 10 fields.
I would like to be able to select fields I need. I can do it with
a text file.


.



Relevant Pages

  • Re: Copy a record to a new record in the same table with a button on form
    ... Allen Browne - Microsoft MVP. ... Perth, Western Australia ... Tips for Access users -http://allenbrowne.com/tips.html ...
    (comp.databases.ms-access)
  • Re: Combo box
    ... Perth, Western Australia ... Tips for Access users - http://allenbrowne.com/tips.html ... I put a combo box in my form as the input data. ...
    (microsoft.public.access.forms)
  • Re: Prefix to Autonumber
    ... Allen Browne - Microsoft MVP. ... Perth, Western Australia ... Tips for Access users - http://allenbrowne.com/tips.html ...
    (comp.databases.ms-access)
  • Re: Find thread on Best match for names
    ... Perth, Western Australia ... Tips for Access users - http://allenbrowne.com/tips.html ... Though the Soundex algorithm is interesting, it is not quite what I am ...
    (comp.databases.ms-access)
  • Re: Combo box
    ... Perth, Western Australia ... Tips for Access users - http://allenbrowne.com/tips.html ... I put a combo box in my form as the input data. ...
    (microsoft.public.access.forms)