
need help with CloseButton=false
Hi,
I am now making a form in Access 97 in which it is importent that the user
will be able to write in data but this data will not be written into the
table - used rather for searching through what is in the table. My users
have been very spesific, they don't want to write data in one text box,
press search and than get the result in another textbox, but want to write
into the same box the result will appear in.
It seems the saving of the data goes on when one moves from one record to
another and when one closes the form. So I wrote som
VBA kode so that
closing the form using my own "close" button, pressing the "search" button,
or going from post topost in the results set will not save any data.
My problem: If a user clickes on the built inn "close" button (the one in
the upper corner with a little X, as my users are used to doing, the data is
saved. I must avoid this.
I tried setting the form property "CloseButton" to no - but the button is
still there and is still active and fuctional. I tried setting "ControlBox"
to no, but the control box is still there , happy and active. I tried to
write a macro attached to the opening of the form that would set either or
both of these properties to false - I recieve a error message 2448 informing
me that the property cannot acept the value assigned.
Anyone know what is wrong? How can I correct this? Is there any other better
approah to preventing updates?
Thank you,
David,
frustrated in Norway