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

error message : object doesn't support this property or method...

Status
Not open for further replies.

lucyc

Programmer
Mar 1, 2002
62
US
I am getting the following message. Can someone tell me what is wrong???

error message : object doesn't support this property or method:'Document.Forms(...).cboRationaleForUse

Here is the subroutine which causes the error:
Sub cboRationaleForUseMessage(xnum)

If Document.Forms(0).cboRationaleForUse(xnum-1).value="07" Or _
Document.Forms(0).cboRationaleForUse(xnum-1).value="10" Then
InterNotesBox "Enter notes indicating the other ","Rationale for use: "
End If
End Sub

Thanks.
 
I take it that this is inside <% and %> tags, right, intended to be ASP code? If so then you're using Javascript DOM syntax (combined with VB?) to access form values. Form values in ASP are accessed via Request.Form(&quot;FormItemName&quot;), or optionally Reques.Form(FormCollectionNumber).
 
I get it. I know what is wrong. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top