Ralph Gould
asked on
Access report #Error in text field
system; win7pro, access 2010 split database. Note that this works fine in Win XP.
A text field on the report shows #Error in his field after being populated. All other fields populate properly. This is an unbound field that is populated from a function in a query. The query part is "removecrlf(Jobs.notes) as NotesClear" The report form field is populated with "NotesClear"
the function "removecrlf(Jobs.notes)" is a triple replace function:
replace(replace(replace(da ta,"i","") , chr(13), ""), chr(10), " ")
A text field on the report shows #Error in his field after being populated. All other fields populate properly. This is an unbound field that is populated from a function in a query. The query part is "removecrlf(Jobs.notes) as NotesClear" The report form field is populated with "NotesClear"
the function "removecrlf(Jobs.notes)" is a triple replace function:
replace(replace(replace(da
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
I don't have the database set up etc but suggest testing a 3-line function first, without embedding in sql. Alternatively, change your sql 'as' part.
ASKER
Tks. I'm going to the client tomorrow or Friday to try just that. I can't duplicate the problem on my systems either.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Scott:
This is a program that I am maintaining, not my development.
I'm wrestling with the issue that this works fine on XP systems, just an issue with Win7pro sytems, all using the same access version.
This is a program that I am maintaining, not my development.
I'm wrestling with the issue that this works fine on XP systems, just an issue with Win7pro sytems, all using the same access version.
ASKER
update:
the whole process is create a hidden access report and convert it to pdf with ms add in. I have been looking at the pdf report and reporting above.
have removed the pdf conversion and dropped the hidden from the report. Now I'm looking at the report, same thing happens (if comments field empty, report field #Error) but the replace function mentioned above isn't used.
HTH
the whole process is create a hidden access report and convert it to pdf with ms add in. I have been looking at the pdf report and reporting above.
have removed the pdf conversion and dropped the hidden from the report. Now I'm looking at the report, same thing happens (if comments field empty, report field #Error) but the replace function mentioned above isn't used.
HTH
maybe formatting property of field?
also, use NZ to handle nulls in query.
also, use NZ to handle nulls in query.
ASKER
coachman how would I do that?
if you run the query by itself do you see errors?
if you use 'NZ(data,'')' instead of 'data' in the replace part does this fix it ? (I am assuming 'data' is the field you wish to manipulate)
* note the '' to the right of 'data,' is two single quotes, not one double.
if you use 'NZ(data,'')' instead of 'data' in the replace part does this fix it ? (I am assuming 'data' is the field you wish to manipulate)
* note the '' to the right of 'data,' is two single quotes, not one double.
ASKER
excellent response, unfortunately issue not resolved yet. back to the drawing board.
ASKER
I just noticed a possibility, the control/text box name is the same as the record source "NotesClear". perhaps you could try that and see if its still ok. tks