So my query is this
SELECT pm,SiteNumber,Client,OnHold,Urgent,SARequired,MissingInformation FROM Sites WHERE OnHold<>'' or Urgent<>'' or MissingInformation<>'' or SARequired<>'' and PM='K' and PM is not null and (ProjectStatus<>'Complete' or ProjectStatus<>'Archived') Order By SiteNumber asc
where PM is not Null - I have also tried in vb.net to set the value to
PM<>dbnull.value
'also tried
PM<> is null
'or just
PM<> Null
None of them seem to leave out the nulls
also confusing me that I'm asking to only see PM where PM='K' as in the query above but I see 'R'
Here is what I'm getting back
pm
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
R
NULL
NULL
NULL
Yes on purpose I tested 'K' for the PM Column since I know I don't have any
I'm sure its something stupid simple , just can't put my finger on it
Any help is appreciated
SELECTand then later use 'PM'. That can make a difference.SELECT **PM**, SiteNumber, Client, OnHold, Urgent, SARequired, MissingInformation FROM Sites WHERE OnHold<>'' or Urgent<>'' or MissingInformation<>'' or SARequired<>'' and PM='K' and PM is not null and (ProjectStatus<>'Complete' or ProjectStatus<>'Archived') Order By SiteNumber asc