473,385 Members | 1,642 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,385 software developers and data experts.

Capitalise first letter of Town

62 32bit
I have a text box with the following:-

=Trim([Address Line 1] & (", "+[Address Line 2]) & (", "+[Address Line 3]) & (", "+[Address Line 4]) & (", "+[Town]) & (", "+[Property.Post Code]))

What I would like is for [Town] to be an initial capital and not all caps. Any help much appreciated.
Feb 2 '17 #1

✓ answered by Seth Schrock

For future reference, MS Access questions need to be asked in the Access forum. I have requested a moderator to move this to the correct forum, but in the meantime I will answer here.

Now that I know this isn't a VB.NET application, try this instead:
Expand|Select|Wrap|Line Numbers
  1. =Trim([Address Line 1] & (", "+[Address Line 2]) & (", "+[Address Line 3]) & (", "+[Address Line 4]) & (", "+StrConv([Town], 3)) & (", "+[Property.Post Code])) 

8 1033
Seth Schrock
2,965 Expert 2GB
Try something like this:
Expand|Select|Wrap|Line Numbers
  1. strName = StrConv(strName, VbStrConv.ProperCase)
Feb 2 '17 #2
glat
62 32bit
Where would I put this?
Feb 3 '17 #3
Seth Schrock
2,965 Expert 2GB
Try adding it to your current textbox like this:
Expand|Select|Wrap|Line Numbers
  1. =Trim([Address Line 1] & (", "+[Address Line 2]) & (", "+[Address Line 3]) & (", "+[Address Line 4]) & (", "+StrConv([Town], VbStrConv.ProperCase)) & (", "+[Property.Post Code])) 
Feb 3 '17 #4
glat
62 32bit
I've put this in but in the form proper is #Name?. I've noticed when I input the code ... (", "+StrConv([Town], VbStrConv.ProperCase)) changes to ... (", "+StrConv([Town],[VbStrConv].[ProperCase])) in the Control Source.
Feb 3 '17 #5
Seth Schrock
2,965 Expert 2GB
Is this a VB.NET application or an MS Access database?
Feb 3 '17 #6
glat
62 32bit
It is MS Access database.
Feb 3 '17 #7
Seth Schrock
2,965 Expert 2GB
For future reference, MS Access questions need to be asked in the Access forum. I have requested a moderator to move this to the correct forum, but in the meantime I will answer here.

Now that I know this isn't a VB.NET application, try this instead:
Expand|Select|Wrap|Line Numbers
  1. =Trim([Address Line 1] & (", "+[Address Line 2]) & (", "+[Address Line 3]) & (", "+[Address Line 4]) & (", "+StrConv([Town], 3)) & (", "+[Property.Post Code])) 
Feb 3 '17 #8
glat
62 32bit
My apologies, I did not realise I was posting on a VB forum. It works perfectly. Thank you.
Feb 3 '17 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Andrew James | last post by:
Gentlemen, I'm running into a problem whilst testing the parsing of a language I've created with TPG . It seems that for some reason, TPG balks when I try to parse an expression whose first...
3
by: Peter Jenkins | last post by:
Can anyone suggest a better/clearer guide than this A List Apart article? http://www.alistapart.com/stories/accesskeys/ It appears to be not quite right as when I do as it suggests... it...
12
by: Alan J. Flavell | last post by:
OK, today's email brought a comment from a reader, pointing out something that I'd long since noticed myself but hadn't done anything about it. On my pages, I've got a first-letter style on...
1
by: Patrick | last post by:
I am trying to get "first-letter" to work inline withing an anchor. Actually I have not been able to get it to work within an <a> tag whether inline, linked, or embedded. Using IE6 service pack 1....
1
by: Steve Pugh | last post by:
I have some styles which IE (Win - tested in 5, 5.5 and 6) is only applying to the first letter of the element. Basic stuff like font-weight and font-size applied to a <p> or <hx> element via...
3
by: news.individual.net | last post by:
Hi! Can I capitalize the first letter of the first paragraph without using a special class for that <p> ? I tried it with this: body > p:first-child:first-letter { font-size: 270%;
6
by: Fungii | last post by:
Hello, I have a stylesheet that sets p:first-letter to a certain size and colour. I was playing around with Javascript to change paragraph stylesheets using an array like this: var paras =...
3
by: gil | last post by:
I have a script that will capitalize the first letter of every word in my descriptions. But some of my descriptions contain ( ) and /. For example bezel (black). I need the script to capitalize...
0
by: Sven Rudolph | last post by:
Hi, I just made a web site and stumbeled upon something, that seems to be a stylesheets bug in Konqueror. When Iuse :first-letter on the a-tag, Konqueror doubles the first letter when I click...
2
by: sehodge | last post by:
<STYLE type="text/css"> P { font-size: 10pt; color:#000;} P:first-letter { font-size: 150%; color:red; font-weight: bold; float: left } </STYLE> Later, I want the first...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.