I have been using this method for years to run back grouns queries etc for years and for some reason in my current form it is playing up. My code is quite simple.
DoCmd.SetWarnings False
DoCmd.OpenQuery "DeleteRowCounters", acViewNormal
DoCmd.OpenQuery "UpdateRowCounter", acViewNormal, acAdd
DoCmd.SetWarnings True
To test it I ran it as
''DoCmd.SetWarnings False
DoCmd.OpenQuery "DeleteRowCounters", acViewNormal
DoCmd.OpenQuery "UpdateRowCounter", acViewNormal, acAdd
''DoCmd.SetWarnings True
With the set warnings commented out it runs fine but with them in it does nothing has anyone else seen this or can suggest a solution?
DoCmd.SetWarnings False
DoCmd.OpenQuery "DeleteRowCounters", acViewNormal
DoCmd.OpenQuery "UpdateRowCounter", acViewNormal, acAdd
DoCmd.SetWarnings True
To test it I ran it as
''DoCmd.SetWarnings False
DoCmd.OpenQuery "DeleteRowCounters", acViewNormal
DoCmd.OpenQuery "UpdateRowCounter", acViewNormal, acAdd
''DoCmd.SetWarnings True
With the set warnings commented out it runs fine but with them in it does nothing has anyone else seen this or can suggest a solution?