View Single Post
  #2  
Old May 19th, 2010, 09:26 PM posted to microsoft.public.access.gettingstarted
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default I am using Window 7 and Access 2007

In the VB window, type the following in the Immediate pane:

Debug.Print Trim(" 1 " )

If you get an error, then it's probably a References issue. Go up to Tools,
References and see if anything is amiss there.

If it does work, there may be something wrong with your SortName. Simplify
by removing some of the fields in it and see what works and doesn't work.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"Als Hotmail" wrote:

The trim function gives me a compiler error

SortName: Trim([Members]![LastName] & ", " & [Members]![FirstName] & " " &
[Members]![MiddleName] & " " & [Members]![Suffix] & " " & [Members]![Title])

The function works using windowXP & vista

Any suggestions would be helpful.