Hi
I need to create a form that will allow users to add new tables to my Access database.
I can create a table with the script below - but can anyone tell me how to wrap it in a form so the user can choose the name of the table (the fields will be the same in each table)
Many thanks
Gerard
This is the script that creates a table called newtbl:
<% Set conn = server.CreateObject("ADODB.Connection"
connectstring = "Driver={Microsoft Access Driver (*.mdb)};" &_
"DBQ=" & Server.MapPath("config/datasources/schooldoccategories.mdb"
conn.Open connectString
adSQL = "CREATE TABLE newtbl (Name text (50), Email text (75), Comments text (255), Region text (50))"
Conn.Execute adSQL
Conn.Close
Set Conn = Nothing
%>
I need to create a form that will allow users to add new tables to my Access database.
I can create a table with the script below - but can anyone tell me how to wrap it in a form so the user can choose the name of the table (the fields will be the same in each table)
Many thanks
Gerard
This is the script that creates a table called newtbl:
<% Set conn = server.CreateObject("ADODB.Connection"
connectstring = "Driver={Microsoft Access Driver (*.mdb)};" &_
"DBQ=" & Server.MapPath("config/datasources/schooldoccategories.mdb"
conn.Open connectString
adSQL = "CREATE TABLE newtbl (Name text (50), Email text (75), Comments text (255), Region text (50))"
Conn.Execute adSQL
Conn.Close
Set Conn = Nothing
%>