Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9
This is the forum to discuss the Wrox book Expert Access 2007 Programming by Rob Cooper, Michael Tucker; ISBN: 9780470174029
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 18th, 2009, 06:47 PM
Registered User
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Dashboard problem with fonction

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
  #2 (permalink)  
Old February 20th, 2009, 03:15 PM
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
  #3 (permalink)  
Old February 21st, 2009, 04:31 AM
Registered User
 
Join Date: Feb 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, the DAO 3.6 is set.

I downloaded the example db from this site, and that Dashboard is running without any problem, so, the problem have to come from something else.
I will try today to rebuild everything and try again.

Thanks for your interest.

Hans


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with login logic and Dashboard alanphil BOOK: Professional CodeIgniter ISBN: 978-0-470-28245-8 18 August 13th, 2009 05:04 AM
Dashboard Example with different users mruschetti BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9 7 February 9th, 2008 05:18 PM
Dashboard example mruschetti BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9 1 January 5th, 2008 02:41 PM
Dashboard reporting tool luxx Excel VBA 0 January 2nd, 2004 12:26 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.