Results 1 to 10 of 10
  1. #1
    jonboy is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    6

    Proper Case

    Access 2016:
    Trying to create a *Proper Case* command or StrConv in new database. Get error window with following: Enter Parameter Value ? Forum Names
    Tried typing StrConv([Forum Names],3) in space. 75 years old > capital R for rookie. Any suggestions? Thanks in advance.

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,799
    You've posted in Access (kind of general) so no clue what this is about. Query parameter prompt? VBA code re: parameter error? Something else?
    In the first line of your post, Forum Names looks like a data value. In the next it looks like a field name. Maybe just replace the brackets [ ] with quotes.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    jonboy is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    6
    Micron, this is a one time project for me. Sorry, I just do not understand your questions?
    Does this help any?? Tried to follow this example: https://www.youtube.com/watch?v=uMRPPBaqeoI
    Click image for larger version. 

Name:	Untitled.png 
Views:	27 
Size:	12.5 KB 
ID:	44891

  4. #4
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,799
    Yes, that helps. You have "Forum Names:" on the left and "Forum Names" on the right. Better if it really should be [Forum Names] - best if you don't use spaces or special characters in object names (save perhaps underscore, which I don't use). If you drag the field from the table in design view or double click on it you will get the correct name, so I'm guessing you actually have the colon in the field name. In that case, I strongly suggest you review the following:

    Naming conventions - http://access.mvps.org/access/general/gen0012.htm
    https://www.access-programmers.co.uk...d.php?t=225837

    What not to use in names
    - http://allenbrowne.com/AppIssueBadWord.html

    If you are not familiar with db normalization I suggest you research that also and ensure you design with these 3 things in mind (naming convention, reserved words and normalization).
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  5. #5
    jonboy is offline Novice
    Windows 10 Access 2016
    Join Date
    Feb 2021
    Posts
    6
    Micron, I really do appreciate your help and patience. Many thanks. Tried to make changes in picture 1. Results:
    Click image for larger version. 

Name:	Untitled 1.jpg 
Views:	23 
Size:	69.9 KB 
ID:	44899 Click image for larger version. 

Name:	Untitled 2.jpg 
Views:	23 
Size:	31.1 KB 
ID:	44900

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,564
    The field Forum Names: in table1 should just be this ForumNames with no space

    Then in your query change PC:StrConv([ForumNames],3)
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  7. #7
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,799
    The function arguments must be wrapped in parentheses. StrConv(argument1, argument2, etc.)
    Again, you are using ForumName in one place and Forum Names: in another. Access is asking you for the latter because it doesn't know what Forum Names (sans colon) is. Like I said, special characters introduce issues - get rid of them before trying anything else.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  8. #8
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,564
    Hi
    See the attached example
    Attached Files Attached Files
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  9. #9
    CarlettoFed is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Dec 2019
    Posts
    255
    In the Query in the field
    Code:
    PC: StrConv([ForumNames:], 3)
    you have to replace the character ',' with ';'
    Code:
    PC: StrConv([ForumNames:]; 3)

  10. #10
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,975
    Hi @carlettofed
    No. It should be your default list separator depending on your regional settings. In the UK it is a comma. In Italy I believe its a semicolon.
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Proper Case Update Query
    By mike2246 in forum Queries
    Replies: 8
    Last Post: 10-28-2019, 01:34 PM
  2. Replies: 4
    Last Post: 04-28-2019, 07:19 PM
  3. Change text case from upper to proper case
    By s.nolan in forum Access
    Replies: 1
    Last Post: 12-02-2015, 10:56 AM
  4. Proper Case or Capitalization help
    By tshirttom in forum Programming
    Replies: 5
    Last Post: 03-23-2012, 10:37 AM
  5. Setting the Default Value and Proper Case Example
    By pkstormy in forum Code Repository
    Replies: 0
    Last Post: 08-27-2010, 07:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums