D
Dennis
Hi,
I'm using Access via Office XP Pro.
I am trying to format the Zip Code on the detail line of my report.
I have tried the following lines of code in both the On Format event and the
On Print event:
If len([PostalCode]) > 5 Then
:
:
end if
or
if len(Me.PostalCode) > 5 Then
:
:
end if
In both events and either code, I receive the error message:
Access can't find the field 'PostalCode' referred to in your expression.
If I put "PostalCode" as the source of the report's control, then every
thing works fine, except the zip code is not formatted.
I tried accessing both Me.PostalCode and [PostalCode] from the immediate
wndow and receive the same error message.
I know that I have not mistyped the field because I copied the field name
from the Source property of the report control. Any idea what is happening?
I also looked at the query which is driving the report. It shows a field
call PostalCode and there is data in the field.
I'm using Access via Office XP Pro.
I am trying to format the Zip Code on the detail line of my report.
I have tried the following lines of code in both the On Format event and the
On Print event:
If len([PostalCode]) > 5 Then
:
:
end if
or
if len(Me.PostalCode) > 5 Then
:
:
end if
In both events and either code, I receive the error message:
Access can't find the field 'PostalCode' referred to in your expression.
If I put "PostalCode" as the source of the report's control, then every
thing works fine, except the zip code is not formatted.
I tried accessing both Me.PostalCode and [PostalCode] from the immediate
wndow and receive the same error message.
I know that I have not mistyped the field because I copied the field name
from the Source property of the report control. Any idea what is happening?
I also looked at the query which is driving the report. It shows a field
call PostalCode and there is data in the field.