Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006

    Unanswered: MS Access Calendar Error 2771

    I am getting a 2771 error with my calendar. There is no response when I select a date. I tried to be slick and reassign the calendar value. That is when I got the 2771 error. Any ideas?


  2. #2
    Join Date
    Mar 2005
    Is this the exact error that you are getting?

    Run-time error '2771': The bound or unbound object frame you tried to edit doesn't contain an OLE object.

    Use the Object command on the Insert menu to add an OLE object to the bound or unbound object frame.

    Does your form look like a table? if it does it is in datasheet view and you cannot use the calendar control in this view.

    Also here is some sample code to assign a value from a OCX calendar control

    This code goes in the Click event of the calendar control, you will have to access the click event in the vba ide

    Private Sub ocxCalendar_Click()
    ' Copy chosen date from calendar to form combo box
    cboStartDate.Value = ocxCalendar.Value
    End Sub
    Last edited by asalamay; 08-16-06 at 14:33.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts