SQL Null statement not working MS Access -


so i'm not sure going on here in database have table has 1000 records , 36 of them have [workername] empty. trying run sql select unassigned, empty [workername] records assign nothing populates when put code in query design , view mode. genuinely have no idea why not working.

strsql = "select intakeid,                   caseid,                   [program],                   [language]            intake            workername null"      set rs = db.openrecordset(strsql, dbopendynaset) 

try code..here first replace null value '' using nz , if not null trim value make sure there no space , check equal '' means empty..hope help

"select intakeid,  caseid,  [program],  [language]  intake  ltrim(rtrim(nz(workername, ''))) = ''" 

Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -