Question Data access page onload event firing weird?

munkee

Registered User.
Local time
Today, 16:06
Joined
Jun 24, 2010
Messages
17
Hi all,
I basically want to save a record as soon as the data access page loads FULLY.
I can get the page to save perfectly fine using the following code:

Code:
<script language=vbscript event=onload for=window>
call hi
</script>
<SCRIPT language=vbscript>
Sub hi()
msgbox "just to delay"
MSODSC.Datapages(0).Save
end sub
</SCRIPT>
However, if i remove the msgbox to delay the save the record no longer saves. It is as if it is firing too early before the record is ready. This is exactly the same with all commands (moving record or creating new).
Does anyone know how i can get past this? I would use a delay script but i'm unsure whether this is a bulletproof
Thanks Chris
 

Users who are viewing this thread

Back
Top Bottom