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 -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -