Results 1 to 5 of 5
  1. #1
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383

    Fields on Forms Wont Use Vb Capitalize Code

    For some strange reason, all of a sudden, none of my fields on my forms wont capitalize.
    Ex:
    Field Name CustCompanyName


    Code on After UpDate Event
    CustCompanyName = StrConv(CustCompanyName, vbProperCase)

    Why?
    I turned OFF the AutoCorrect thing, no change.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    Something must have been changed. Can't replicate the issue. Would have to examine db.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Does the data you want to capitalize already exist on the form (i.e. in the table), and are you tabbing through the field?

    If so, that is the problem - After Update does not fire unless you edit the field, i.e. type something in it.

    Might that be the issue?

    John

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,623
    The code in the AfterUpdate event should have saved the data with the propercase structure when the data was originally entered so tabbing through field should not be relevant unless this is not the form where that data is entered to table or the data has been imported.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    burrina's Avatar
    burrina is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Database Got Corrupt Somehow, somebody snuck in while I wasn't looking and did something. Copied into new db, all is well for now.

    Thanks,

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

Similar Threads

  1. Forms\VBA Code\Sort Combo Box
    By Ran in forum Programming
    Replies: 4
    Last Post: 03-15-2012, 01:10 PM
  2. Query search wont display null fields
    By Coffee in forum Queries
    Replies: 2
    Last Post: 08-08-2011, 09:00 AM
  3. Multpile forms wont run queries! Help!
    By deh1012 in forum Queries
    Replies: 2
    Last Post: 08-30-2010, 07:54 AM
  4. Capitalize
    By DizzyD in forum Database Design
    Replies: 3
    Last Post: 07-08-2010, 07:18 PM
  5. VBA code - questions table onto forms
    By Tman in forum Programming
    Replies: 3
    Last Post: 04-26-2010, 05:47 AM

Tags for this Thread

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