I'd like to copy selected records from one Access table to another. I know how to create an Append Query, but this won't meet my needs, as I actually want to run 20 successive queries, and would prefer to do it with a single button rather than writing (and storing) 20 queries.
It seems that this should be easy, but I cannot seem to get the right syntax. I started with a normal SQL Insert as follows:
Code:
INSERT INTO TempFixCase17 ( ID, OrigLen, CaseNumber, NewCase, State, County, ann_fname, ann_lname, FilingDate, DocType )
SELECT TempFixCases.ID, TempFixCases.OrigLen, TempFixCases.CaseNumber, TempFixCases.NewCase, TempFixCases.State, TempFixCases.County, TempFixCases.ann_fname, TempFixCases.ann_lname, TempFixCases.FilingDate, TempFixCases.DocType
FROM TempFixCases
WHERE (((TempFixCases.LIST)="List017"));[
Not even close. When that didn't work, I found something here that told me to try:
Code:
DoCmd.RunSQL "Insert into [TempFixCase17] (Select from [TempFixCases] where [TempFixCases].
[List]="List017")
That didn't work either.
Can someone tell me the magic?
(P.S. This is my first time on the forum. Only after I posted did I notice the "FORMS" forum where, perhaps, this question belongs. My apologies)