Microsoft
Software
Hardware
Network
Question : closing form without saving
hi Experts,
I have a bound form in datasheet view with a close button. If I made changes to the grid, and press Close, i do not want to save any changes I made to the grid. I want it to be at the same state as i opened it.
I tried this in the onclick event of the button.
If MsgBox("Do you want to Cancel saving this record?", vbYesNo) = vbYes Then
Me.Undo
DoCmd.Close acForm, Me.Name
End if
It did not work. i even tried to use the Me.Dirty but it always returns false.
Do I need to set a property so Dirty will return true or Me.undo will work?
Please help.
Thanks.
Answer : closing form without saving
thenelson, that does not work as well.
I just did a not so elegant solution, I just delete the current record when exiting.
Random Solutions
Can an Outlook calendar be imported into SharePoint?
Using rtrim in my query
How do you restore a smaller partition image of Windows XP onto a larger disk and still have Windows XP boot up recognizing the larger disk size?
How can I change the colour of text in a report field to match a colour specified in the report?
-2147467259 [Microsoft][ODBC SQL Server Driver][DBNETLIB]Connectio<wbr />nWrite(Wra<wbr />pperWrite(<wbr />))
Why does the clipboard stop working on occasion?
Get all realted downloads to a subcategory
Windows 2008 Terminal Server Mandatory profile error
cannot view MS Office Documents in IE6
Update a column from another table colum