Hi Bin:
I tried solving this for him and I just created an extra column, setting the
expression to DateTime.Now and everything was fine. I tested this much and
it worked great. However whenever I tried doing the subtracting, it kept
telling me that "-" was invalid between two date and times fields.
I've tried everything I know and it's driving me nuts...... I used that
below and even used the # # like the expression syntax references and still
no dice.
Have you gotten that to work? I may just have tunnelvision b/c I've been
trying this for a few hours now.
Let me know if you can think of anything.
Cheers,
Bill
"Bin Song, MCP" <(E-Mail Removed)> wrote in message
news:66F24815-12AA-45CC-A6A7-(E-Mail Removed)...
> Hi, Jon
>
> There is no datetime function for a DataColumn Expression. Check:
>
http://msdn.microsoft.com/library/de...ssionTopic.asp
>
> What you might do is:
> dataColumn.Expression = "'" & DateTime.Now() & "'- TIME_OUTAGE"
>
> Bin Song, MCP