Based on a prior post I created the following procedure, which creates a table (GREAT!!) but I can't get the data per the "where" statement to transfer over.
I need all the fields populated (name, social, term, sumofamt) where I choose the term and the amount. I was trying to start by choosing only one field (term) but nothing comes accross.
Private Sub Command3_Click()
Dim TableName As String
Dim strSQL As String
TableName = InputBox("Please type a table name, per semester"
DoCmd.TransferDatabase acExport, "Microsoft Access", CurrentDb.Name, acTable, "Addchangename", TableName, True
MsgBox "Table " & TableName & " created"
strSQL = "INSERT INTO [" & TableName & "]SELECT AddChangeName.* From AddChangeName where (([AddChangeName]![term]= 200301));"
MsgBox "Data Transferred to " & TableName
End Sub
Any help is greatly appreciated.
Judy