View Single Post
  #2 (permalink)  
Old February 20th, 2009, 03:15 PM
mruschetti mruschetti is offline
Authorized User
 
Join Date: Oct 2007
Location: , , .
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Salsaboy60 View Post
Hello,

First of all I wanna say how great I find your book. It is really, what I need. One can find really usefull tips in it and the example code is great.

I have a small problem though. I am not a professional programmer, but I am creating a database in our (very small) company, and I was trying to make the dashboards work. I copied your code, created all the tables and forms, everything ok, but whan I try to select a component to fill my frame, a error message turns up.

The highlighted line of code is in the fonction FillDashboard, and the line is :
Code:
frm.Controls(rs("DashboardControl")).SourceObject = rs("ComponentObject")
The error code is 2101 : parameter not valid for this property.

Could someone help me out here and tell me why I have this error message?
Did I forget something?

Many thanks for any comment.

Hans
Well, maybe you have to set the reference of the DAO recordset in visual Basic, have you set it ??...

Go to Database tools, visual Basic, tools, reference, and check if you have the DAO 3.6 reference check
Reply With Quote