Sep 20, 2001 #1 gmie Programmer Sep 6, 2001 29 MY Hello guys... How to run MS-Access and then creat table and field. TQ
Sep 20, 2001 #2 schu MIS Jun 21, 2001 188 HK If you want to create a table in a database it is simple. Just create a database object which points to you access .mdb file using the alias setting(so that it knows where to find your database). Create a query (e.g. query1) and set the database name to your database. then if query1.active then query1.close; query1.sql.clear; query1.sql.add ('create table xxx (field1 type,field2 type ....)'); query1.execsql; voila, you create you table. If you want to open access, and perform the creation in access. I am sorry but cannot give you an answer, maybe someone else can. Upvote 0 Downvote
If you want to create a table in a database it is simple. Just create a database object which points to you access .mdb file using the alias setting(so that it knows where to find your database). Create a query (e.g. query1) and set the database name to your database. then if query1.active then query1.close; query1.sql.clear; query1.sql.add ('create table xxx (field1 type,field2 type ....)'); query1.execsql; voila, you create you table. If you want to open access, and perform the creation in access. I am sorry but cannot give you an answer, maybe someone else can.
Sep 21, 2001 Thread starter #3 gmie Programmer Sep 6, 2001 29 MY OK thanks..I wil work on it right now......... Upvote 0 Downvote