• Run time error 2448

    Author
    Topic
    #470142

    I received the following error, “Run-time error 2448 You can’t assign a value to this object.”

    I have a command button on the main form that filters a subform check box.

    Here is the code:

    With Me.frmZip_info.Form
    .Filter = “Select = -1”
    .FilterOn = True
    End With

    Any ideas why?

    Thanks!

    Viewing 1 reply thread
    Author
    Replies
    • #1232888

      Is frmZip_info being used as a subform on a main form (whatever Me. is)? If so you need to reference it using the subform control name. Otherwise I don’t see anything wrong with your code.

    • #1232909

      With Me.frmZip_info.Form
      .Filter = “Select = -1”
      .FilterOn = True
      End With

      Assuming frmZip_info is the name of the subform control, any chance this control is locked or not enabled? Or that the AllowFilters property of the subform itself is set to No?

    Viewing 1 reply thread
    Reply To: Run time error 2448

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: