When I run the following, I get run-time error 7874 cannot find object select...
Sub Import()
DoCmd.SetWarnings False
'DoCmd.DeleteObject acTable, "test"
DoCmd.SetWarnings True
'DoCmd.TransferText acImportDelim, , "test", "C:\Users\Matthew\Desktop\test.txt", True
DoSql
End Sub
Sub DoSql()
Dim strSQL As String
strSQL = "SELECT test.[Contact First Name],test.[Contact Last Name] FROM test;"
DoCmd.OpenQuery strSQL
End Sub