Ruralguy and John, i do like your idea of using the update query, however I
do not want users of the db to keep seeing that pop up warning message that
items in the table are about to change.
Douglas, I tried adding me.requery and me.refresh....they both don't work
very well, any other suggestions?
As I know, CurrentDb.Execute don't ask for confirmation? In any other
cases you can add before code
DoCmd.SetWarnings False
and after
DoCmd.SetWarnings True
and appropriate Error capturing code in case when Update query fails,
but this is not a case here.
For example, following will ask for confirmation:
Private Sub Command22_Click()
Dim strSQL As String
strSQL = "UPDATE Forecastnames SET Oustanding = " & -1
DoCmd.RunSQL strSQL
End Sub
If you see message "Save Record" or "Drop Changes" that suggest that
someone else (even you) is making changes to the same record at the
same time when Update query do. As program does not know to whom to
give priority and which one to discard it ask you to decide.
I am just guessing as your description is not completed.
Regards,
Branislav Mihaljev