• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 47
  • Last Modified:

Access 2013 - Query Question - String Formatting

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
DGWhittaker
Asked:
DGWhittaker
  • 3
1 Solution
 
Craig YellickDatabase ArchitectCommented:
Use the StrConv function with option 3 which makes each first letter upper case.

StrConv("test me",3)

Open in new window


-- Craig
0
 
DGWhittakerAuthor Commented:
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
 
DGWhittakerAuthor Commented:
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
 
DGWhittakerAuthor Commented:
Perfect!
Thanks!
Dennis
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now