Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB Databases
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases 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
 
Old November 10th, 2004, 08:38 AM
Authorized User
 
Join Date: Jun 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Set AdoDc properties at run time

Hi

I'm sure this has been asked before but ....

I want to change the Adaodc control source RecordSource property at run time in a VB6 application

Is this possible? and how do I make it work?

I've tried


    adoContacts.RecordSource = strSQL
    adoContacts.Refresh

but this seems to disable to AdoDc control


Thanks
Psionman
__________________
Thanks
Psionman
 
Old November 10th, 2004, 09:03 AM
Authorized User
 
Join Date: Jun 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

What you are doing is correct. The ADODC control will appear disabled if there are no records that meet your SQL statements criteria.

HTH

Byron

 
Old November 10th, 2004, 10:07 AM
Authorized User
 
Join Date: Jun 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Byron,

I should know by now that what I think is the problem rarely is!

Thanks
Psionman





Similar Threads
Thread Thread Starter Forum Replies Last Post
how set Attribute of Folder at Run Time Rahul Gupta Pro VB 6 2 October 17th, 2007 11:55 PM
set page properties by code. Komila ASP.NET 1.0 and 1.1 Basics 0 July 6th, 2006 05:36 AM
DataGrid DataColumn Property Set at Run-time karhodes ADO.NET 0 April 14th, 2004 03:37 PM
Changing forms properties at run time Louisa VB.NET 2002/2003 Basics 5 January 15th, 2004 01:07 PM
How to set the multiline property at run time? harini19 VB How-To 3 January 9th, 2004 03:52 PM





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