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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OBJECT REQUIRED ERROR (WINDOW.)

Status
Not open for further replies.

99Chuck99

Programmer
Dec 11, 2003
67
US
Source page to bring up popup form with filter (KEYID) this
part works fine.....

<SCRIPT language=vbscript id=clienteventhandlersVBS>
<!--
Sub Command0_onclick

newDlg = window.showModalDialog _
("\\xxxxx\xxxx\xxx\xx\Databases\POPUPCOMMENT.htm" , _
document.all.KEYID.value, _
"dialogHeight: 300px; dialogWidth: 900px; center: yes; resizable: no; status: no;")

IF newDlg = True then
window.location.reload()
end if
end sub
-->
</SCRIPT>

But when I click on the command to save record I get a Object required statement at the "window.KEYID.vlaue" not real sure what this code is doing? I have tested the window.dialogArugments and it is passing a numeric KEYID field. Any help would be greatly appriciated. I have been pulling hair out for hours now.....



<SCRIPT language=vbscript id=ClientEventHandlersVBS>
<!--
sub Command0_onclick
window.KEYID.vlaue = window.dialogArguments
window.MSODSC.CurrentSection.DataPage.save()
window.returnvalue = true
end sub
-->
</SCRIPT>
 
I'd replace vlaue with value

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top