If the case is closed it will contain the date it was closed otherwise it remains empty.
I search my DB for a case finishing my query with
Code: Select all
"and closed is null" My Query also converts the closed date
Code: Select all
convert(varchar(12), closed,103) as closedEither the case does not exist or the case is closed.
I need to know if this Field had a value so I can pop up a message
to the user to advise them that IT IS a CLOSED case.
I have tried the following two commands without success....
Code: Select all
var IsClosed : String;
IsClosed := DBSearchGrid.DataSource.DataSet.FieldByName('closed').AsString;
If IsClosed <> '' Then ShowMessage('Case is a CLOSED Case');
IsClosed := DBSearchGrid.DataSource.DataSet.Fields.Fields[13].AsString;
If IsClosed <> '' Then ShowMessage('Case is a CLOSED Case');I use both of the above in other parts of my code without problem.
Any Ideas....