Ok yesterday I tried the following and it was still giving me the
'The Save action was cancelled.' error.
Code:
Dim a As String
a = SearchResultsForm.Name
DoCmd.OpenForm a, acNormal, , , acFormEdit, acWindowNormal, searchQuery
DoCmd.Save
DoCmd.Close acForm, a
Today when I came back and tested it, it saved the form perfectly.
This really worries me.
This tells me that it might be a permissions issue. The permissions were at a different state yesterday than they are today. I gave myself exclusive access and administrator privleges yesterday, and there were no permissions set before yesterday. Today I logged on, didnt change a thing, and those forms were automatically saved without the annoying error.
So maybe the new permissions rules only took effect after I logged back in today? There isnt enough proof to claim this is what the problem was, or that logging out and logging back in is any kind of solution.
Am I correct in my thinking? Hope I havent confused you.
Maybe what I am asking is how can I make sure this more stable when more users are using this at the same time? Or even one user?
Thanks
ÃaÃeVi£