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:
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
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>
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