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

Help required with, 'Object required'

Status
Not open for further replies.

leighsw

Programmer
Dec 6, 2000
4
GB
I am trying to use an ActiveX Calendar control to load a page where the content is based on the date selected by the user.

In order to do this I am passing the date value from the calendar to the next page in the following way:-

<SCRIPT LANGUAGE=vbscript>
Option Explicit
Dim caldate, name
Sub Calendar1_Click( )
<%caldate=Calendar1.Value%>
viewer.document.location.href = &quot;displaypage.asp?name=<%=caldate%>&quot;
End Sub
</SCRIPT>


As soon as the execution gets to the '<%caldate=Calendar1.Value%>' line it stop with the 'Object required' runtime error.

I can pass anything else (variables) in this way but not Calendar1.Value

I am new to VBscript, ASP and programming in general so may be missing something fairly obvious.

Hope someone can help, thanks
 
I have no idea, but maybe put it inside a recset thing:

recset(&quot;Calendar1&quot;).Value

thats how I would do it in jscript jared@aauser.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top