Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Insert from VB to VFP
Message
From
25/03/2005 12:17:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows 2000
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00999165
Message ID:
00999172
Views:
29
>I have the following statement that seems to work fine in native VFP, but when trying to run from VB6, it gives a syntax error. Any ideas?
>
>INSERT INTO Table1 (field1, field2, field3, field4) SELECT field1, field2, field3, field4 FROM Table2

I don't think ODBC driver supports that syntax (valid only in VFP8 and after). Try VFPOLEDB.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform