473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

INSERT INTO Acess 2K table from Visual FoxPro DBF

sam
I need to append to an existing table from a FoxPro DBF and I can't get
the syntax right.
I can open a recordset:

cnxn.Open "Driver={Microsoft Visual FoxPro
Driver};SourceType=DBF;SourceDB=h:\relayer\files;E xclusive=No"
rs.Open ("select cust.* from cust"), cnxn

I can work round my problem but would like to use INSERT INTO...
FROM... IN
Can anyone help with the syntax?

Thanks

Feb 22 '06 #1
5 3505
You either need to walk through the recordset and add the records 1 by 1
(slower) or use something like:

INSERT INTO MyOtherTable
SELECT Cust.*
FROM Cust;
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

"sam" <sa******@spl.at> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I need to append to an existing table from a FoxPro DBF and I can't get
the syntax right.
I can open a recordset:

cnxn.Open "Driver={Microsoft Visual FoxPro
Driver};SourceType=DBF;SourceDB=h:\relayer\files;E xclusive=No"
rs.Open ("select cust.* from cust"), cnxn

I can work round my problem but would like to use INSERT INTO...
FROM... IN
Can anyone help with the syntax?

Thanks

Feb 22 '06 #2
sam
Doesn't work Arvin, I think I need an IN statement that identifies the
path and the database type similar to the connection string.

Arvin Meyer wrote:
You either need to walk through the recordset and add the records 1 by 1
(slower) or use something like:

INSERT INTO MyOtherTable
SELECT Cust.*
FROM Cust;
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access

"sam" <sa******@spl.at> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I need to append to an existing table from a FoxPro DBF and I can't get
the syntax right.
I can open a recordset:

cnxn.Open "Driver={Microsoft Visual FoxPro
Driver};SourceType=DBF;SourceDB=h:\relayer\files;E xclusive=No"
rs.Open ("select cust.* from cust"), cnxn

I can work round my problem but would like to use INSERT INTO...
FROM... IN
Can anyone help with the syntax?

Thanks


Feb 22 '06 #3
"sam" <sa******@spl.at> wrote in
news:11**********************@g44g2000cwa.googlegr oups.com:
Doesn't work Arvin, I think I need an IN statement that identifies
the path and the database type similar to the connection string.


Can't you just link to the DBF files directly?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 23 '06 #4
sam
Yes David, but this is not about resolving a problem but rather
learning something new.

David W. Fenton wrote:
"sam" <sa******@spl.at> wrote in
news:11**********************@g44g2000cwa.googlegr oups.com:
Doesn't work Arvin, I think I need an IN statement that identifies
the path and the database type similar to the connection string.


Can't you just link to the DBF files directly?

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/


Feb 23 '06 #5
"sam" <sa******@spl.at> wrote in
news:11**********************@z34g2000cwc.googlegr oups.com:
David W. Fenton wrote:
"sam" <sa******@spl.at> wrote in
news:11**********************@g44g2000cwa.googlegr oups.com:
> Doesn't work Arvin, I think I need an IN statement that
> identifies the path and the database type similar to the
> connection string.


Can't you just link to the DBF files directly?


Yes David, but this is not about resolving a problem but rather
learning something new.


Well, then you should check the connect string on the linked DBF
file and model your IN statement in the SQL on that.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 23 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Fabrice | last post by:
Hello everybody, I'm working with Access 2002. I have to import Data from a Foxpro table that contains 25000 records in an Access table. I have a couple of restrictions placed on me for the...
2
by: Maverick | last post by:
If i try to create foxpro table by the following "sql" statment, the C# compiler will only return an error "xxxx not support in non-dbc version". The "index on" command statement return some kind...
3
by: Amar | last post by:
I have a abc.PRG file in visual foxpro 8.0. I can run this file using visual foxpro environment and it creates a table X.dbf in the same folder where this program file is and populates some data...
4
by: Rafael Tejera | last post by:
I'm new using visual basic, I'm programmer in visual foxpro and I want try visual basic .net I would like to know how i can insert data from a form using insert. I already have 3 textbox in my...
2
by: technocraze | last post by:
Hi guys, I have encountered this error when updating the values to the MS Acess table. Error : Update on linked table failed. ODBC sql server error Timeout expired. MS Acess is my front end and...
1
by: technocraze | last post by:
Hi guys, I am having trouble resolving this error. Below mentioned is my code and implmentation. MS Acess is my front end and sql server is my backend. What i want to achieve is to be...
2
by: riyap | last post by:
hi can anyone help me to simplify my logic in writing code, i have ms acess database table.i want to get the data from there(using select command with where clause) and insert into a stored...
2
by: cj | last post by:
We have a legacy accounting system (not developed in house) here that happens to be written in Visual FoxPro. One of the tables has an index that is actually a coded function COMPANY1 ...
3
by: Kunal Desale | last post by:
Hi, How to insert/update data in foxpro table field having datatype MEMO using Linked Server? I have written sql insert queries in which i have used linked server to insert data into foxpro...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.