<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>
<BR>
if val(txtDate.text) < #1/7/09# then <BR>
etc. etc<BR>
<BR>
However this gives a discount to dates before and after the cut off date. I have also tried declaring orderdate as a variable of type date and also changing 'val' to 'dateval' in the above code 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>