Need some guidance from experts on what could be causing my issue with #Error displaying in text box control on MS Access 2010 report.
I have a bunch of underlying querries this report is built on. These querries use the Nz function to display 0 "zero" instead of Null. I have triple checked and had co-worker double check all spelling referencing query field names, etc.. I am thinking it may have something to do with one user has a dash or hyphen in their last name which is how it is in user table and subsequent querries and crosstabs. When displaying this exact field on report works but it will not when used in expression for text box control in question.
This is causing me to go bald pulling my hair out racking my brain and need help as the users of this site always provide. I am out of ideas and things to check. Thank you in advance.
This expression for the report text box control including user with hyphen in last-name DOES NOT work. Note I have substituted FirstName1.LastName1 instead of real world user names to simplify and to protect real names.
However, this expression does work. Note I removed the user that has hyphen in their last name, "+[qry_CR02ClassifyInvNumErrors].[FirstName2 Last-Name2]" and it works (i.e no longer displays #Error for the report text box control).
I have a bunch of underlying querries this report is built on. These querries use the Nz function to display 0 "zero" instead of Null. I have triple checked and had co-worker double check all spelling referencing query field names, etc.. I am thinking it may have something to do with one user has a dash or hyphen in their last name which is how it is in user table and subsequent querries and crosstabs. When displaying this exact field on report works but it will not when used in expression for text box control in question.
This is causing me to go bald pulling my hair out racking my brain and need help as the users of this site always provide. I am out of ideas and things to check. Thank you in advance.
This expression for the report text box control including user with hyphen in last-name DOES NOT work. Note I have substituted FirstName1.LastName1 instead of real world user names to simplify and to protect real names.
Code:
="Invoice Number " & FormatNumber(Sum([qry_CR02ClassifyInvNumErrors].[FName1 LName1]+[qry_CR02ClassifyInvNumErrors].[FName2 L-Name2]+[qry_CR02ClassifyInvNumErrors].[FName3 LName3]),0) & " :"
However, this expression does work. Note I removed the user that has hyphen in their last name, "+[qry_CR02ClassifyInvNumErrors].[FirstName2 Last-Name2]" and it works (i.e no longer displays #Error for the report text box control).
Code:
="Invoice Number " & FormatNumber(Sum([qry_CR02ClassifyInvNumErrors].[FName1 LName1]+[qry_CR02ClassifyInvNumErrors].[FName3 LName3]),0) & " :"