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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Upper and Lower case conversion issues



 
 
Thread Tools Display Modes
  #1  
Old June 22nd, 2006, 06:54 PM posted to microsoft.public.access
perryclisbee via AccessMonster.com
external usenet poster
 
Posts: 20
Default Upper and Lower case conversion issues

Hi,

I have a report (rptCurrentJobList) whose select query (qryCurrentJobList) is
being populated with data from a linked table, where all data is capitalized.
As a result, the report address information is all capitalized and is grouped
in the following structu

=CanShrinkLines([JobsiteAddressLine1],[JobsiteAddressLine2],Trim([JobsiteCity]
) & ", " & [JobSiteState] & " " & [JobsiteZip])

This setup allowed the info to be compressed into the required cell. I have
tried to use the StrConv ([fieldname],3) idea to format the data, but the
CanShrinkLines gets in the way. Is there a way to use both StrConv and
CanShrinkLines at the same time? I am not allowed to convert the format of
the linked tables directly.

Thanks,

Perry

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200606/1
  #2  
Old June 22nd, 2006, 07:02 PM posted to microsoft.public.access
perryclisbee via AccessMonster.com
external usenet poster
 
Posts: 20
Default Upper and Lower case conversion issues

Hi,

I tried the following, and it seems to work to a point:

=CanShrinkLines(StrConv([JobsiteAddressLine1],3),StrConv([JobsiteAddressLine2]
,3),Trim(StrConv([JobsiteCity],3)) & ", " & UCase([JobSiteState]) & " " &
[JobsiteZip])

The only problem I have now is when the address has a SW or NW etc in it.
The coding converts it to Se or Nw etc.. Any ideas?

Perry

perryclisbee wrote:
Hi,

I have a report (rptCurrentJobList) whose select query (qryCurrentJobList) is
being populated with data from a linked table, where all data is capitalized.
As a result, the report address information is all capitalized and is grouped
in the following structu

=CanShrinkLines([JobsiteAddressLine1],[JobsiteAddressLine2],Trim([JobsiteCity]
) & ", " & [JobSiteState] & " " & [JobsiteZip])

This setup allowed the info to be compressed into the required cell. I have
tried to use the StrConv ([fieldname],3) idea to format the data, but the
CanShrinkLines gets in the way. Is there a way to use both StrConv and
CanShrinkLines at the same time? I am not allowed to convert the format of
the linked tables directly.

Thanks,

Perry


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200606/1
  #3  
Old June 26th, 2006, 04:56 AM posted to microsoft.public.access
Larry Linson
external usenet poster
 
Posts: 3,112
Default Upper and Lower case conversion issues

You can create a user-defined function to do whatever manipulations you want
to the data, but figuring out the possible combinations and just what should
and should not be capitalized is going to be the big problem. The
combinations you cite, NW and SW, would be special cases in such a UDP.

That problem is going to be compounded if you have addresses from multiple
countries in the DB.

Larry Linson
Microsoft Access MVP

"perryclisbee via AccessMonster.com" u9916@uwe wrote in message
news:622a033d06050@uwe...
Hi,

I tried the following, and it seems to work to a point:

=CanShrinkLines(StrConv([JobsiteAddressLine1],3),StrConv([JobsiteAddressLine2]
,3),Trim(StrConv([JobsiteCity],3)) & ", " & UCase([JobSiteState]) & " " &
[JobsiteZip])

The only problem I have now is when the address has a SW or NW etc in it.
The coding converts it to Se or Nw etc.. Any ideas?

Perry

perryclisbee wrote:
Hi,

I have a report (rptCurrentJobList) whose select query (qryCurrentJobList)
is
being populated with data from a linked table, where all data is
capitalized.
As a result, the report address information is all capitalized and is
grouped
in the following structu

=CanShrinkLines([JobsiteAddressLine1],[JobsiteAddressLine2],Trim([JobsiteCity]
) & ", " & [JobSiteState] & " " & [JobsiteZip])

This setup allowed the info to be compressed into the required cell. I
have
tried to use the StrConv ([fieldname],3) idea to format the data, but the
CanShrinkLines gets in the way. Is there a way to use both StrConv and
CanShrinkLines at the same time? I am not allowed to convert the format of
the linked tables directly.

Thanks,

Perry


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200606/1



 




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 01:31 PM.


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