If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > ADO dBase?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-26-04, 00:14
DC1777 DC1777 is offline
Registered User
 
Join Date: Jan 2004
Posts: 4
Unhappy ADO dBase?

Hello,

could anybody help me, i am trying to do a a smple conversion in vb, using ado connection. i am trying to create a dbase IV dbf file using an ado connection parameter. (see codes below). but i always end up with an error messgae of "Syntax error in Create Table statement"..

i would greatly appreciate all your help.

thanks.

DC1777

--------- Codes --------------------
Private cnr as new adodb.connection

cnr.Open "Driver={Microsoft dbase driver (*.dbf)};UID=;PWD=;SourceDB=" + cExtractFile + ";SourceType=DBF;Exclusive=No;BackgroundFetch=Yes; Collate=Machine;Null=Yes;Deleted=Yes;"

cnr.Execute "create table " & cExtractFile & " (account N(8),fanchise N(4),rno C(11),orname C(40),notes C(25),trandate D,trantime C(8),deposit N(6),ptype C(2),branch C(6),thru C(6),bank C(10),chkno C(16),dochk D,amount N(16),user C(5),package C(3),posted L,xbilling L,scposted L,withsc L,scpay L,total N(16))"

-------- End Code -----------------
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On