|
-
November 8th, 1999, 11:16 AM
#1
Creating database using ADOX
Hi
I've created succesfully an access database in code using ADOX (piece of cake), but I can't find anything about the field-order; I've append the columns in the right order, but when I open the database, the order of the fields is alphabetic, which not only looks bad but isn't handy at all.
Does anyone know how to set the "field-order"?
Tnx in advance
Crazy D @ Work :-)
-
November 8th, 1999, 11:36 AM
#2
Re: Creating database using ADOX
Open db in Access, highlight the table and click on Design. Click on first column you need to move to the different place then drag it to new position and drop.
Vlad
-
November 9th, 1999, 02:58 AM
#3
Re: Creating database using ADOX
Yeah, I know, but I mean from within code,
Tnx anyway.
Crazy D @ Work :-)
-
November 9th, 1999, 07:59 AM
#4
Re: Creating database using ADOX
if you want to display the field names in the order you created it, you should be able to use the OrdinalPosition property of the fields collection of a table.
-
November 9th, 1999, 08:07 AM
#5
Re: Creating database using ADOX
tnx, but there is no object in the ADOX objects that has an OrdinalPosition property :-(
And for displaying within the program, I use another database, which is setup at designtime. This is an export database, created during runtime, I only have to fill it, not display it. It's not a big problem, but it looks "unfinished" (if you know what I mean) if it's sorted alphabetically.
Crazy D @ Work :-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|