Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using NewRecord Method?

Status
Not open for further replies.

ewd97

MIS
Jan 24, 2004
16
0
0
US
I am new to vbscript. I have a Data Access Page that I created in MS Access. What I am trying to accomplish is when the page opens in IE, it will begin ready to add a new record. Currently, it begins with a list of existing data and you can then click the navigation button to create a new entry, and that works fine. I am trying to simplify the process for the end user by having it ready to enter a new record when they access it.

I have found the NewRecord Method, but am very confused on the syntax. I have tried the following and have no clue what I am missing.

<SCRIPT language=vbscript event=DataPageComplete for=MSODSC>
<!--

MSODSC.CurrentSection.DataPage.NewRecord
-->
</SCRIPT>

What else do I need in this script for this to work. Thank you for the help.

Ewd97
 
I figured it out. I was putting the entry in the wrong area. I used the "ondatasetcomplete" area and it worked fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top