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 December 11th, 2004, 01:50 PM
pad pad is offline
Registered User
 
Join Date: Dec 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to pad Send a message via AIM to pad Send a message via MSN to pad
Default VB6 ADO Dynamic Data Binding Question

Hi guys,

I need some advice about binding controls to recordsets...

I'm working on an app that has several forms with controls that show records from two separate recordsets..

I'm trying to write a routine that will bind all of the controls on a form to a recordset .. The idea is that the code loops through all of the controls of the form and if the control has a tag set (which is in the form recordset.fieldname then I can use the two parts of the tag to set the Datasource and Datafield properties of the control.

The problem I've got is that DataSource is an object and the recordsetname from the tag is a string.

Is it possible to turn a string into an Object Reference so I can set the datasource with the text from the tag?

Or....

Do you have any advice about the best way to bind controls to recordsets, or get the info from recordsets into controls? This is always a sticking point for me when I'm writing apps because doing it manually is so tedious..

Any advice gratefully received.

Thanks guys,

pad.

 
Old January 28th, 2005, 10:43 PM
Authorized User
 
Join Date: Jul 2004
Posts: 34
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via ICQ to chipset Send a message via MSN to chipset Send a message via Yahoo to chipset
Default

i didn't quite get your post, but to my understanding, you could copy all the record on both form, and create a table at run-time, put it to the table. and when you are through, you could delect the table and all the duplicated record. tell me what you think!

Arowolo





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to achieve dynamic binding li72 XSLT 3 February 21st, 2008 11:46 AM
Dynamic Binding in Report Viewer ritesh2381 ASP.NET 2.0 Professional 0 November 19th, 2007 07:29 AM
Using ado.net and data binding Brettvan1 VB.NET 2002/2003 Basics 18 February 6th, 2006 01:39 PM
Intercepting ADO Errors in VB6 mike123abc Pro VB Databases 1 January 28th, 2005 11:08 PM
VB6 DataReport and ADO mike123abc Pro VB 6 1 June 8th, 2004 12:01 AM





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