Are you wanting a default date for the amper variable or are you wanting a default date to display in a calendar control? If it's just the variable, just take &YYMD and subtract a day (using the DATECVT function.) If it's for display in a control, there are many examples on the web of Javascript code to handle this.
You mention an HTML form, but there is nothing here to indicate that one has been prepared, so I'm assuming that you're relying on autoprompting. Is that correct? If so, I'll just say that (in my opinion) autoprompting should ONLY be used for the simplest procedures (basically fill in some text or combo boxes.)
If you're wanting to control the display values or have any additional processing that should happen or manipulation of variables, you probably should create your own HTML form where you have complete control over everything, instead of trying to find ways to make autoprompting do what you want and then hoping it works consistently. I know autoprompting can handle a lot of those things, but it's sometimes amazing the lengths that are taken to make it work properly when an HTML page can be laid out just as quickly and allows for much greater control.
(Sorry for the soapbox speech - (especially if you weren't even trying to use autopromting. My misunderstanding, in that case.)
Regards,
Darin
In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat