Can enyone tell me where could be mistake in code:
Some oprerators are missing and I cant figure it out which they are
Private Sub Command1_Click()
Dim TblName As String
Dim StrSql As String
Dim fromTabela As String
TblName = InputBox("Table name")
fromTabela = InputBox("From table")
StrSql = "SELECT [" & fromTabela & "].[Šifra_komitenta] " & _
"INTO" & TblName & _
"FROM [" & fromTabela & "] ;"
CurrentDb.Execute StrSql, dbFailOnError
THanks
Some oprerators are missing and I cant figure it out which they are
Private Sub Command1_Click()
Dim TblName As String
Dim StrSql As String
Dim fromTabela As String
TblName = InputBox("Table name")
fromTabela = InputBox("From table")
StrSql = "SELECT [" & fromTabela & "].[Šifra_komitenta] " & _
"INTO" & TblName & _
"FROM [" & fromTabela & "] ;"
CurrentDb.Execute StrSql, dbFailOnError
THanks