D
Daniel Pineault
Hello,
I am trying to process data from a temp table and depending on criteria, in
one case append it to the data table. To do so I thought that the INSERT
INTO SQL statement was the way to go but seem to be having difficulty with
the proper syntax.
here is an excerpt from my code
sISQL = "INSERT INTO tbl_Clients * " & _
"SELECT * " & _
"FROM [tbl_sales tree import] " & _
"WHERE [Hist ID]='" & ![Hist ID] & "'"
DoCmd.RunSQL sISQL 'Execute the SQL statement
I figure the issue is with the wilcards. What is the proper approach? I
really do not want to list all the fields (what happens if they are changed)
as illustrated in the help file. Is there a way to simply copy a specific
record from one table to another?
Thank you for the helping hand,
Daniel P
I am trying to process data from a temp table and depending on criteria, in
one case append it to the data table. To do so I thought that the INSERT
INTO SQL statement was the way to go but seem to be having difficulty with
the proper syntax.
here is an excerpt from my code
sISQL = "INSERT INTO tbl_Clients * " & _
"SELECT * " & _
"FROM [tbl_sales tree import] " & _
"WHERE [Hist ID]='" & ![Hist ID] & "'"
DoCmd.RunSQL sISQL 'Execute the SQL statement
I figure the issue is with the wilcards. What is the proper approach? I
really do not want to list all the fields (what happens if they are changed)
as illustrated in the help file. Is there a way to simply copy a specific
record from one table to another?
Thank you for the helping hand,
Daniel P