Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Setting the Value of an ActiveX Control

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,473
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Setting the Value of an ActiveX Control
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Setting the Value of an ActiveX Control - 11/6/2001 11:03:20 PM   
  tfewster

 

Posts: 1
Score: 0
Joined: 11/6/2001
From: Canada
Status: offline
I have a form where a user can look at their past purchase transactions. To specify a date range I've added a date picker control to the form which defaults to today's date.

When the form is loaded, I want the date picker to default to 'one month ago' so that the transactions in the past month are shown by default.

I'm trying to use VBSCRIPT to adjust the date as follows

<SCRIPT Language="VBSCRIPT">
Sub Window_OnLoad()
document.ViewTransaction.dteDates.DateValue = DateAdd("m",-1,Date)
End Sub
</SCRIPT>

I do not get an error with this code, but the date is not changed. How do I do this?

Tim
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Setting the Value of an ActiveX Control Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts