473,402 Members | 2,064 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

report address formatting

Hi,
I have the following on my report to format addresses:

=CanShrinkLines(StrConv([JobsiteAddressLine1],3),StrConv([JobsiteAddressLine2]

,3),Trim(StrConv([JobsiteCity],3)) & ", " & UCase([JobSiteState]) & " " &
[JobsiteZip])
However, it does not figure out how to capitilize the part of the address
that has either SW, SE, NW, NE in it. Is there a function or some other way
to have the query sort this out? Currently the SW etc is being converted to
Sw etc.

Thanks,

Perry

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200606/1
Jun 22 '06 #1
2 2697
perryclisbee via AccessMonster.com wrote:
Hi,
I have the following on my report to format addresses:

=CanShrinkLines(StrConv([JobsiteAddressLine1],3),StrConv([JobsiteAddressLine2]

,3),Trim(StrConv([JobsiteCity],3)) & ", " & UCase([JobSiteState]) & " " &
[JobsiteZip])
However, it does not figure out how to capitilize the part of the address
that has either SW, SE, NW, NE in it. Is there a function or some other way
to have the query sort this out? Currently the SW etc is being converted to
Sw etc.

Thanks,

Perry

I don't know what CanShrinkLines is. Is it a function?
If it is, you might want to pass the JobSite and CSZ data to format it
intead. There you'd strConv Addr1/2. Then check if the last 3 chars
are SW/ SE/ NW/ NE. If so get the left part prior to the last 3 chars
and Ucase the remaining
Select Case Right(strAddr1,3)
Case " SW", " SE", " NW", " NE"
strAddr1 = Left(strAddr1,len(strAddr1)-3) & _
Ucase(Right(strAddr1,3))
End Select
Jun 22 '06 #2
I ran into this myself. I used the "CanShrinkLines" function to format a report over a year ago. Since then, all my important Access objects were migrated into a new database file with all tables in a SQL Server back end. When I tried to run this report I got the same symptoms you described. In reviewing how I had set this up last year, I finally realized that the "CanShrinkLines" function was not built in to Access, but was a custom VBA function I had copied from a Microsoft web site into a module in the file. After I located the module and recreated it in the new file I was fine. Here's the URL for the microsoft site with the details: http://office.microsoft.com/en-us/as...494721033.aspx
Jul 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Todd D. Levy | last post by:
I have a query based report where a number of the fields in each record are Yes/No data fields. I would like this report to behave as follows: If ALL of the Yes/No data fields in a given...
8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
8
by: Armando | last post by:
Here's one that's going to leave me bald before long - I have a report (no headers or footers, small detail section) that runs normally when I open it from the database window. When I run it...
6
by: DeniseY | last post by:
I have an Access report that is created on the fly by the user selecting the fields to be included. The Access report comes out fine, but I want it to automatically output to an Excel spreadsheet....
5
by: CarrieR | last post by:
I am working within a DB I have been devolping in Access 2003, and have encountered a report coding issue I was hoping someone could help me with: I have 18 reports, each running off some smaller...
1
by: Dave | last post by:
How does one go about formatting reports? I am having trouble grouping specific items together with each other. I can't get all the information umbrella'ed under one specific source. I have 2...
0
by: goal2007 | last post by:
I created sql server report project Here is my Problem, I have a list control that contains table and some labels. Under MyListControl -> Properties-General Tab ->Button : Details Group(I group...
10
by: sara | last post by:
Hi - I have a report that is 14 columnar sub-reports (Line up: Position- holders in each of our 14 locations - Manager, Assistant Manager, Receiving, Office, etc). I output directly to PDF...
4
by: J Lagos | last post by:
I want to change the backcolor of textboxes in a report depending on their value. I messed with this for a few hours but I'm not savvy with the syntax for getting at controls in a report. can...
4
by: Trish | last post by:
Hello All and thanks in advance for your help. The code below works just fine in the Print event of the report Detail section. Is it possible to condense it using a loop or something? Can you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.