PDA

View Full Version : Simple onload event question


briandeitch
10-06-2003, 02:27 AM
=======================
IIS 5.0
Access XP (2000 Format)
Running on an intranet
=======================


I've created a form in Access and saved it as a data access page to run on our intranet. When the page is opened (in Internet Exploer) I want it to go to a new record. I must be burnt out because I cannot figure it out.

In Access I was able to add "RecordSet.AddNew" on the "On Open" action on the form. I guess I might be looking for some HTML code that runs when the page is opened to tell goto a new record.

I think I might have figured it out but my code is flat out crap.
[quote]<SCRIPTlanguage=JScriptevent=onloadfor=MsoNavContai ner>
MsoNavAddNew;
</SCRIPT></CODE>

Am I heading in the right direction or am I completely off base?



--Brian--

briandeitch
10-06-2003, 04:12 AM
Still haven't figured it out but I think I'm getting closer.

Does anyone know what's wrong with this code?
[quote]<SCRIPTlanguage=JScriptevent=onloadfor=window>
window.upsNavNew;
</SCRIPT></CODE>

Should be pretty standard stuff....
event=when the page loads
for=the browser windows
window.upsNavNew; ups is the table name and Navnew is to go to a new record.

Am I on the right track?....anyone?

--Brian--