Results 1 to 6 of 6
  1. #1
    nmart1230 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    43

    getting error "can not assign a value to this object"

    I get this error on line me.[Assign Fiche Clerk] = "NO DATA". This field is a text field on the table if that helps.
    Code:
    Private Sub Report_Load()
    If IsNull(Me.INPUT_CLERK1) Then
    Me.INPUT_CLERK1 = "NO DATA"
    End If
    If IsNull(RECEIPT_DATE) Then
    Me.RECEIPT_DATE = "NO DATE"
    End If
    If IsNull(ASSIGN_PREP_CLERK) Then
    Me.ASSIGN_PREP_CLERK = "NO DATA"
    End If
    If IsNull(PREP_ASSIGN_BEGIN_DATE) Then
    Me.PREP_ASSIGN_BEGIN_DATE = "NO DATE"
    End If
    If IsNull([Assign Fiche Clerk]) Then
    Me.[Assign Fiche Clerk] = "NO DATA"
    End If
    If IsNull(Fiche_Assign_Begin_Date) Then
    Me.Fiche_Assign_Begin_Date = "NO DATE"
    End If
    If IsNull(INPUT_CLERK2) Then
    Me.INPUT_CLERK2 = "NO DATA"
    End If
    If IsNull(BATCH_HEADER_DATE) Then
    Me.BATCH_HEADER_DATE = "NO DATE"
    End If
    If IsNull(INPUT_CLERK3) Then
    Me.INPUT_CLERK3 = "NO DATA"
    End If
    If IsNull(OUTPUT_START_DATE) Then
    Me.OUTPUT_START_DATE = "NO DATE"
    End If
    End Sub


  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Spelling? All the other references have underscores, although I would expect a different error message.
    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
    nmart1230 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    43
    Well, as usual the db has capital letters and spaces for control names. So, if i change the names I shouldn't have a problem?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    Suggest trying.
    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
    nmart1230 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    43
    Okay, renamed everything and I still the same error on the same control. So, now is it the field type or still something else.

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,954
    If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

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

Similar Threads

  1. Error: "Cannot update. Databse or Object is read-only" Issue
    By excellenthelp in forum Programming
    Replies: 6
    Last Post: 05-10-2022, 04:20 AM
  2. Replies: 12
    Last Post: 08-07-2014, 10:28 AM
  3. Replies: 8
    Last Post: 08-04-2014, 08:58 PM
  4. Replies: 1
    Last Post: 03-14-2013, 12:39 PM
  5. "You can't Assign a value to this object."
    By MarcoRed in forum Access
    Replies: 3
    Last Post: 06-07-2012, 02:47 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