I am looking for something like this below. The difference is that this is filtering a report. I want to filter a query and append to a table.
Function Level_Five()
Dim rs As Recordset
Dim CC_Criteria As String
Dim rpt As Report
Dim FileName As String
Dim Path1 As String
Dim Path2 As...
field1 is in query2.
Say the first value in query1 is 373. I want the code to open query2 and place "373" in the criteria for field1. The query will append all records where field1 = "373" to the table.
The idea behind the looping is that the code would open query2...
Very junior question, but I am stuck. I have a query ("Query1") that contains a list of numbers. I want to run an append query ("Query2") that sets the criteria for a field ("field1") based on the value in query1.
What I have in mind is code that opens query2...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.