ms access - Simple IF statements not working -


i using simple if statements getting ignored when command button clicked reason.

what missing?

    if text4 = "" msgbox "you must add gs reference", vbinformation exit sub else end if  if text6 = "" msgbox "you must add service account number", vbinformation exit sub else end if  if text8 = "" msgbox "you must pick advisor", vbinformation exit sub else end if  if me.text10 = "" msgbox "you must select date received option", vbinformation exit sub else end if  if me.text12 = "" msgbox "you must select date failed option", vbinformation exit sub else end if 

to me these should checking if textbox blank, if blank display message stop running code. not working @ all.

try replace checking textboxes commands this:

if nz(text6,"") = "" 

or

if len(nz(text6,"") = 0 

the last 1 works little bit faster


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -