Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Button to close data access page

0 views
Skip to first unread message

Mike

unread,
Jul 23, 2009, 12:32:01 AM7/23/09
to
I have a data access page with 2 command buttons: "Save" and "Cancel".
"Cancel" button is used to undo record changes. The script for the button
below was created automatically by the Wizard:

<SCRIPT language=javascript for=CancelButton event=onclick>
try { if (MSODSC.DataPages.Count > 0)
if (MSODSC.CurrentSection == null)
MSODSC.DataPages(0).Undo();
else
MSODSC.CurrentSection.DataPage.Undo(); }
catch (e)
{ alert (e.description);}
</SCRIPT>

But I would like the button not only to undo the record changes, but also to
close the browser window. Please, give me a sample script.
Thanks in advance for any help!

Robert

unread,
Aug 5, 2009, 8:53:01 PM8/5/09
to
Try window.close()

missy and jeff

unread,
Aug 16, 2009, 8:03:05 PM8/16/09
to
thank you
"Mike" <Mi...@discussions.microsoft.com> wrote in message
news:559370E6-2990-4F30...@microsoft.com...

JORGE

unread,
Sep 29, 2009, 5:29:10 AM9/29/09
to

"Mike" <Mi...@discussions.microsoft.com> wrote in message
news:559370E6-2990-4F30...@microsoft.com...

florine

unread,
Nov 3, 2009, 10:42:44 PM11/3/09
to

"missy and jeff" <lexus...@aol.com> д����Ϣ����:OUPbS4sH...@TK2MSFTNGP05.phx.gbl...
0 new messages