Microsoft Knowledge Base Email Alertz

(193347) - When you try to use the Query Designer against the MS Shape Provider in the Data Environment, the following error message is returned: Query Designer encountered a ADODB.Properties error: Query Designer encountered a ADODB.Properties error: Query...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 193347 - Last Review: March 14, 2005 - Revision: 3.1

PRB: Error When You Use MS Data Shape Provider in Data Environment

This article was previously published under Q193347

On This Page

SYMPTOMS

When you try to use the Query Designer against the MS Shape Provider in the Data Environment, the following error message is returned:
Query Designer encountered a ADODB.Properties error:
Query Designer encountered a ADODB.Properties error:
Query Designer encountered a ADODB.Properties error:
ADO could not find the object in the collection corresponding to the
name or ordinal reference requested by the application.(11)
Upon clicking OK, a second error message is returned:
Object Variable or With block variable not set.

STATUS

This behavior is by design.

MORE INFORMATION

The Query Designer cannot be used to build hierarchical queries against the shape provider. If you want to build a hierarchical query via the DE, you can use the Query Designer for each separate query, and then use the property pages on the data environment to specify the relationship between the queries. The Query Designer is not able to talk directly to the DataShape provider.

Steps to Reproduce Behavior

This sample uses a dsn named NWind that connects to the Nwind.MDB that comes with Visual Basic.
  1. Create a Standard EXE project in Visual Basic. Form1 is created default.
  2. Add a data environment.
  3. For connection1 properties, set provider to MS Data Shape, and set the data source to Nwind (you can just type the dsn name here).
  4. Click OK.
  5. Add a new command.
  6. For Command1 properties select SQL Statement, then click on SQL Builder.
  7. Note that the Error messages above are returned.

REFERENCES

For more information about the Visual Basic Data Environment or the MSDataShape OLE DB provider, please refer to your Visual Basic online documentation.

APPLIES TO
  • Microsoft Visual Basic 6.0 Enterprise Edition
  • Microsoft Data Access Components 2.0
  • Microsoft Data Access Components 2.1
  • Microsoft Data Access Components 2.5
  • Microsoft Data Access Components 2.6
  • Microsoft Data Access Components 2.7
Keywords: 
kbprovider kbdataenv kbdatabase kbdesigner kbprb KB193347
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate