Re: Creating a table dynamically in ACCESS
- From: "HD" <dumh@xxxxxxxxxxx>
- Date: Tue, 28 Mar 2006 13:30:19 -0500
I found my problem... there should not be a space between the comma and the
name of the next field... had nothing to do with the typing of the field.
Thanks.
H. Dumas
"HD" <dumh@xxxxxxxxxxx> a écrit dans le message de
news:442957a2$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi,database
I have gone through the Internet to find out how I can create a MDB
dynamically in Delphi. I have found my people with recipes that uses theclasses
ADOX components.
I have done exactly as directed... Imported the Library renaming the
by adding TADOX... I have added a AdoConnection, AdoCommand andlooks
AdoXCatalog...
I create the Database fine, but when I try to create a table, I get a
EOleException Error: Syntax Error in Field Definition... My connection
like this:
'Provider=Microsoft.Jet.OLEDB.4.0;DataSource=c:\temp\test.mdb;Jet
OLEDB:Engine Type=5'
and the table creation looks like this.... I have tried changing the
Integer for Int... but it still does not work... Should I be using NUMBER
or TEXT instead of INTEGER and VARCHAR???
CREATE TABLE rensg_tours (ID_ETABL INTEGER, NO_SEQ_DEC INTEGER, CATGR_ETBL
VARCHAR(6), NOM_CONTAC VARCHAR(22), PRE_CONTAC VARCHAR(22), ID_ENSEI1
INTEGER)
Please help,
H. Dumas
.
- References:
- Prev by Date: Delphi 2005, ADO, XML
- Next by Date: Reading uncommitted data with MS Access
- Previous by thread: Creating a table dynamically in ACCESS
- Next by thread: Delphi 2005, ADO, XML
- Index(es):