Help with #error - NZ, Iserror, isnull not working

gatefire08

New member
Local time
Today, 05:26
Joined
Jul 28, 2015
Messages
7
Hello,

I am stuck. I have been trying to figure out how to get rid of #error. I have uploaded the database.

When I open up the frmMail and then the qryLayout, I get #error. I know the reason why (because the textboxes on the form are blank or null.

How do I get the qrylayout to display a blank and get rid of #error.

I tried Nz function, IsError, Isnull, none of it worked.


Thank you so much for your help!
 

Attachments

Here is the syntax for the [Last Name], let's if you can figure out for the [Password].
Code:
SELECT iif(Isnull([Forms]![frmMain]![txtStartPosition]),Null,Mid([Field1],[Forms]![frmMain]![txtStartPosition],[Forms]![frmMain]![txtLength])) AS [Last Name]
FROM tblProduction;
 
wow! thank you so much!!


SELECT iif(Isnull([Forms]![frmMain]![txtStartPosition1]),Null,Mid([Field1],[Forms]![frmMain]![txtStartPosition1],[Forms]![frmMain]![txtLength])) AS [Password]
FROM tblProduction;

=]
 

Users who are viewing this thread

Back
Top Bottom