<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Can anyone help me with VB6 code for the following task. My students are working on a program which will allow a discount on goods purchased before 30th June 2009. I have tried the following line of code:<BR>
&nbsp;<BR>
&nbsp;if val(txtDate.text) &lt; #1/7/09# then&nbsp;&nbsp; <BR>
etc. etc<BR>
&nbsp;<BR>
However this gives a discount to&nbsp;dates before and after the cut off date. &nbsp;I have also tried declaring orderdate as a variable of type date and also changing 'val' to 'dateval' in the above code&nbsp;but this then gives no discount at all regardless of the date. I thought this would be simple to code but am tearing my hair out. Thanks in advance to anyone who can help. Leanne Wright - Epping SC<BR><br /><hr />Let ninemsn property help <a href='http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Edomain%2Ecom%2Eau%2F%3Fs%5Fcid%3DFDMedia%3ANineMSN%5FHotmail%5FTagline&_t=774152450&_r=Domain_tagline&_m=EXT' target='_new'>Looking to move somewhere new this winter?</a></body>
</html>