| |
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
|
|