Results 1 to 4 of 4
  1. #1
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287

    StrConv causing a read only error?

    Hey guys,

    I have a very simple bit of code attached to a simple entry form:
    Code:
    Private Sub Name_AfterUpdate()
    Me.Name = StrConv(Me.Name, vbProperCase)
    End Sub
    Click image for larger version. 

Name:	Screen Shot 2014-08-12 at 11.18.28 AM.png 
Views:	6 
Size:	28.8 KB 
ID:	17767



    Why would this be throwing a read only error?
    Click image for larger version. 

Name:	Screen Shot 2014-08-12 at 11.19.12 AM.png 
Views:	6 
Size:	26.2 KB 
ID:	17768

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    I'm going to guess it is because "Name" is a reserved word. http://www.allenbrowne.com/AppIssueBadWord.html#N

  3. #3
    snipe's Avatar
    snipe is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Sep 2013
    Posts
    287
    Wow. Thank you so much. I feel like an idiot!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Been there...done that...got the T-Shirt.

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

Similar Threads

  1. Replies: 3
    Last Post: 07-21-2014, 09:33 AM
  2. Replies: 2
    Last Post: 02-14-2014, 04:05 PM
  3. Replies: 5
    Last Post: 12-15-2011, 11:16 AM
  4. Query Criteria Causing Data Mismatch Error
    By jrubenol in forum Queries
    Replies: 2
    Last Post: 09-14-2011, 09:34 AM
  5. New tables created in a loop causing error
    By shubhamgandhi in forum Programming
    Replies: 2
    Last Post: 07-20-2011, 05:16 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