Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error 2771 with Calendar control

Status
Not open for further replies.

davem1958

Programmer
Oct 10, 2001
17
US

I have a form in Access 2000 with 2 calendar controls, version 7, which works fine. Each calendar works in conjunction with a combo box, as suggested in another thread.

I created a new form, added another calendar, copied the same code into the form, and now when I click on a new date I get an error 2771, "The bound or unbound object frame you tried to edit doesn't contain an OLE object."

The code behind the calendar it's griping about is

cboDate.Value = calBeginDate.Value

Anyone seen this before? Microsoft has an article Q131934 that says you can't have a calendar in Dataview. I don't, it's Form view only.

Dave.
 

I found out why, but not sure how to fix it. If the form is bound to a recordset, and happens to load with zero records, the calendar is still visible, but it doesn't like to be clicked.

It works fine with 1 or more records.

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top