Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I want to use the select command on my datatable to select a subset of rows that match my criteria. However, I'm having trouble. Here's my code:

 

DataRow [] dra = myDataSet.Tables["Tasks"].Select(select);

 

select = (DueDate>Format('1/1/1','yyyy/MM/dd') And Due_Date<Now() And Completed=False) Or (Completed=False)

 

I get the following error message though: "The expression contains undefined function call Format()."

 

How can I check if my DueDate column is set to the default 1/1/1?

 

help please?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...