Hello. I have a BE and FE database, whenever someone clicks a button on the front end... an insert query updates the back end... so we can track usage.. the back end is one table.. With this many people using the system, at an average of 1000 clicks daily... I am worried that if the table is being used by one user, then another user will not be able to make the update.. basically I want to add redundancy to this process... so this is what I have...
-Original code, with zero redundancy...
so this on click, runs the script, then does an insert query to the database....Code:Private Sub cmdAuthDatabase_Click() Call AuthData DoCmd.SetWarnings False DoCmd.OpenQuery "qryFuncLog" DoCmd.SetWarnings True
---------------
-What I want to do is.......
SO if an error occours, it will point to another table and leave the insert there... HOWEVER while testing .... I hit a button on the front end... and the insert shows up in both tables.... as if there is always an error, or I did the Err: labeling wrong... any help is appreciated.Code:Private Sub cmdAuthDatabase_Click() Call AuthData DoCmd.SetWarnings False On Error GoTo Err: DoCmd.OpenQuery "qryFuncLog" Err: DoCmd.OpenQuery "qryFuncLog1" DoCmd.SetWarnings True
Actually while writing this I think I will try this as well...
Meh that did the same thing... made an entry into both tables... any idea?Code:Private Sub cmdAuthDatabase_Click() On Error GoTo Err: Call AuthData DoCmd.SetWarnings False DoCmd.OpenQuery "qryFuncLog" DoCmd.SetWarnings True Err: DoCmd.SetWarnings False DoCmd.OpenQuery "qryFuncLog1" DoCmd.SetWarnings True End Sub