I have what is a complicated update qry I haven't been able to make work. I have a form that is filtered by the following qry. Me.Filter = "[dateofsession] Between forms![billingtransmitted]![beginningdate]And forms![billingtransmitted]![EndingDate] and [selected] = true"
FilterOn = True
Selected are claims between certain dates to be sent to various insurance companies..
Ok now I want to update all the selected records by changing the field billingselected to true. I tried this but it doesn't work
CurrentDb.Execute "UPDATE insurance INNER JOIN (Clients INNER JOIN Billing ON Clients.NameID = Billing.LookupClientName) ON insurance.insurance = Clients.Insurance SET Billing.BillingSelected = True WHERE (Billing.DateOfSession Between " & Me![BeginningDate] & " And " & Me![EndingDate] & " ) AND ([insurance].[selected]=True);"
Any suggestions or easier solutions are much appreciated. Alan