How to get rid of question: 'Save record?'

  • Thread starter Thread starter Randi W
  • Start date Start date
R

Randi W

Programming an application in MS-Access 2000, I have a situation where I
would like to suppress the question to the user 'Do you want to save
record?'

When clicking a button that I have put on the form, I want to blank all
fields in the form - and I do not want to save and not ask the user if he
wants to save. MS-Access automatically comes up with this question. I guess
there is some command available that I can put in the event code for OnClick
to get rid of the question - but what is that command?

Thanks for any help on this,
Randi W.
 
Randi W said:
Programming an application in MS-Access 2000, I have a situation where I
would like to suppress the question to the user 'Do you want to save
record?'

When clicking a button that I have put on the form, I want to blank all
fields in the form - and I do not want to save and not ask the user if he
wants to save. MS-Access automatically comes up with this question. I guess
there is some command available that I can put in the event code for OnClick
to get rid of the question - but what is that command?

Thanks for any help on this,
Randi W.

Me.Undo
 
Thanks - this helped the situation that I described.

But I have one more related question. What if I want to save, but just want
to suppress the question?
I would like to make a 'Save' button (running command 'RunCommand
acCmdSaveRecord'), but if the user pushed a 'Save'-button, it seems a little
stupid he is being asked if he wants to save..

Randi W.
 
Back
Top