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![billingtransmit ted]![beginningdate]And forms![billingtransmit ted]![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.Execu te "UPDATE insurance INNER JOIN (Clients INNER JOIN Billing ON Clients.NameID = Billing.LookupC lientName) ON insurance.insur ance = Clients.Insuran ce SET Billing.Billing Selected = True WHERE (Billing.DateOf Session Between " & Me![BeginningDate] & " And " & Me![EndingDate] & " ) AND ([insurance].[selected]=True);"
Any suggestions or easier solutions are much appreciated. Alan
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.Execu te "UPDATE insurance INNER JOIN (Clients INNER JOIN Billing ON Clients.NameID = Billing.LookupC lientName) ON insurance.insur ance = Clients.Insuran ce SET Billing.Billing Selected = True WHERE (Billing.DateOf Session Between " & Me![BeginningDate] & " And " & Me![EndingDate] & " ) AND ([insurance].[selected]=True);"
Any suggestions or easier solutions are much appreciated. Alan
Comment