Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21266

Need Tutorial for ADODC Control Object

$
0
0
I havent touched VB for years and trying to re-write a project due to not being able to modify my old Access database, hence need to relearn how to use ADODC (think I was using a Data object previously).

I've searched for this, however all tutorials are creating new ADODC objects during runtime (connection and recordsets) which is different to how I do things. Is there a tutorial on how to use the object?

I've placed the adodc object and set via properties to connect to the MS Access database. I've placed the text boxes that use the adodc object. Once run, the adodc object scroll buttons will change the text box when you scroll through the records.

Simple enough, but now I want to do a few more advanced features -

1) How to set the ConnectionString on runtime- The project works when I set this in the ADODC properties, however when I try and set the ConnectionString during run-time, it doesn't work, even if I have the exact same string (As I want to use App.Path when I make this an executable).

2) Still can't understand how to pass a Query into the ADODC object

3) Can't understand how to jump to a record.

Can anyone help?

Thanks in advance.

Viewing all articles
Browse latest Browse all 21266

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>