
Signature
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Fredg,
The control source property for the report fields looks like the following:
=TRIM([First Name] & " " & [Last Name])
=TRIM([Address])
=TRIM([City] & ", " & [State] & " " & [Zip])
The Record Source for the report is a query with the following:
SELECT DISTINCT Clients.[First Name], Clients.[Last Name], Clients.Address,
Clients.City, Clients.State, Clients.[Zip Code], Clients.[Birth Date],
DatePart("d",[Birth Date]) AS Expr1
FROM Clients
WHERE (((Month([Clients].[Birth Date]))=[Forms]![Control
Panel]![Birthdates]));
I'm inclined to think that Access 2000 does not support the TRIM the
function, although I can't confirm this. This could also be a bug within that
function, I'm guessing here. Seems to me TRIM should work in both Access 2000
and 2003.
-Sky
> > Hello All,
> >
[quoted text clipped - 40 lines]
> For even more information, see
> http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
fredg - 03 Mar 2005 23:49 GMT
> Fredg,
>
[quoted text clipped - 64 lines]
>> For even more information, see
>> http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
Access 2000 certainly does support the Trim function.
Did you not check the reference in the Access 2000 database, as I
suggested?
Even if none are marked MISSING, follow the Quick Solution
instructions on the link I gave you in the previous post.
On the Access 2003 database, controls sources (without Trim) of:
=[First Name] & " " & [Last Name]
[Address] (from the drop-down, without the = sign is OK)
= [City] & ", " & [State] & " " & [Zip]
Should all work, as long as the name of the control is not the same as
the name of a field used within that control's control source
expression. So the first control, for example, can not be named
either "First Name' nor "Last Name". It is OK if the [Address] control
(without the = sign) is named "Address" because it is not an
expression.

Signature
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Sky Warren - 04 Mar 2005 17:57 GMT
Fredg,
After further investigation, I discovered the problem with TRIM is being
caused by code in one of my forms that calls the reports. If I just run the
report as is everything is fine, but when I open it via my form the trouble
begins. Now I just have to figure out what part of the code is causing the
problem.
Thanks Fredg for your help on this, and I apologize for sending you in the
wrong direction re: this.
-Sky
> > Fredg,
> >
[quoted text clipped - 84 lines]
> (without the = sign) is named "Address" because it is not an
> expression.