
Originally Posted by
dododo
Hi,
I'm trying to create table in my access database that would have name like i type in Textbox and than i have to click the button
With code like this :
Private Sub Command0_Click()
Dim strsql
strsql = "create table '" & txttablename.Value & "' ( id integer , gender char(1) default ""F"");"
CurrentProject.Connection.Execute strsql
CurrentProject.Connection.Close
Me.Application.RefreshDatabaseWindow
End Sub
**Note: txttablename is the name of my textbox
I got error. Please help me to correct it.