Creating an Access table in VB (1 Viewer)

harrisw

Registered User.
Local time
Today, 05:13
Joined
Mar 27, 2001
Messages
131
How can I create an access table using purely vb6.

I want the user to be able to specify how many columns the table will be in the vb app

I also need to be able to sort an existing table in the access database by a certain column.

2 questions in one.

Any ideas?
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 00:13
Joined
Feb 19, 2002
Messages
43,408
1. You can build DDL in code and run it as a pass-through query. Look up CREATE TABLE for syntax. You could also use ADO.

2. Add an Order By clause to your query.
 

harrisw

Registered User.
Local time
Today, 05:13
Joined
Mar 27, 2001
Messages
131
AM using ADO but can't find a command to create table. I've also tried MS Knowledge base
 

Users who are viewing this thread

Top Bottom