PC Review


Reply
Thread Tools Rate Thread

I am using Window 7 and Access 2007

 
 
Als Hotmail
Guest
Posts: n/a
 
      19th May 2010
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.

 
Reply With Quote
 
 
 
 
Jerry Whittle
Guest
Posts: n/a
 
      19th May 2010
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.
>

 
Reply With Quote
 
Als Hotmail
Guest
Posts: n/a
 
      19th May 2010
Debug.Print Trim(" 1 " ) works in the VB window.
When I put in a query grid sortname: trim(" 1 ") I get the error message
compile error in query.
Any other suggestions?
Thanks Al

"Jerry Whittle" <(E-Mail Removed)> wrote in message
news:4DE009EA-30D1-4FF5-AA0C-(E-Mail Removed)...
> 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.
>>

 
Reply With Quote
 
Als Hotmail
Guest
Posts: n/a
 
      19th May 2010
Thanks
Can you send me a copy of the code.
I am using Access 2007 in window 7
Thanks again Al


"Jerry Whittle" <(E-Mail Removed)> wrote in message
news:4DE009EA-30D1-4FF5-AA0C-(E-Mail Removed)...
> 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.
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ACCESS 2007: programming access to the find screen window genefalk Microsoft Access 0 29th Apr 2009 08:56 PM
Properties window in Access 2007 went away Rick Microsoft Access 3 9th Oct 2008 03:38 AM
Access 2007: How Do I unhide my access explorer window Caoimhin Microsoft Access 1 15th Aug 2008 06:54 PM
How do i get a form to appear as a pop up window in access 2007? =?Utf-8?B?ZHM=?= Microsoft Access Forms 1 7th Jun 2007 01:44 AM
[Access 2007] Problem to disable the Close Button (X) on the Access Application Window David Berthemet Microsoft Access 0 28th Feb 2007 11:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:52 AM.