Solved

Access 2013 - Query Question - String Formatting

Posted on 2016-08-09
4
27 Views
Last Modified: 2016-08-09
Greetings!
I have this in one of my queries, and I need to have it return the value in Proper Case.

FirstNameBase: IIf(InStr([Record Disposition]![Customer],Chr$(32))>0,Mid([Record Disposition]![Customer],1,InStr([Record Disposition]![Customer],Chr$(32))-1),[Record Disposition]![Customer])

Thanks!
Dennis
0
Comment
Question by:DGWhittaker
  • 3
4 Comments
 
LVL 11

Accepted Solution

by:
CraigYellick earned 500 total points
ID: 41749500
Use the StrConv function with option 3 which makes each first letter upper case.

StrConv("test me",3)

Open in new window


-- Craig
0
 

Author Comment

by:DGWhittaker
ID: 41749505
Thanks Craig!

Okay, I tried that, but with this approach it gives me an invalid syntax error:

FirstName:StrConv(FirstNameBase: IIf(InStr([Record Disposition]![Customer],Chr$(32))>0,Mid([Record Disposition]![Customer],1,InStr([Record Disposition]![Customer],Chr$(32))-1),[Record Disposition]![Customer]),3)

Thougths!
Thanks!
Dennis
0
 

Author Comment

by:DGWhittaker
ID: 41749508
Oops, nevermind, I  had some noise in there where I copied from my original formula.
All is good in the lands!
Thanks Craig!
Dennis
0
 

Author Closing Comment

by:DGWhittaker
ID: 41749509
Perfect!
Thanks!
Dennis
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now