A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

I am using Window 7 and Access 2007



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2010, 08:43 PM posted to microsoft.public.access.gettingstarted
Als Hotmail
external usenet poster
 
Posts: 3
Default I am using Window 7 and Access 2007

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.

Ads
  #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.

  #3  
Old May 19th, 2010, 10:59 PM posted to microsoft.public.access.gettingstarted
Als Hotmail
external usenet poster
 
Posts: 3
Default I am using Window 7 and Access 2007

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" wrote in message
...
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.

  #4  
Old May 19th, 2010, 11:01 PM posted to microsoft.public.access.gettingstarted
Als Hotmail
external usenet poster
 
Posts: 3
Default I am using Window 7 and Access 2007

Thanks
Can you send me a copy of the code.
I am using Access 2007 in window 7
Thanks again Al


"Jerry Whittle" wrote in message
...
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.

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright 2004-2020 OfficeFrustration.
The comments are property of their posters.