Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wizard - Where the DatPrimaryRS.Connectstring is initiated 1

Status
Not open for further replies.

ivanmart

MIS
Feb 19, 2000
14
US
I created and aplication with the wizard. I want to know where the DatPrimaryRs object is initiated. I had inspected the proyect but i didnt found where this object is instantiated. I want to know when o where the property DatPrimaryRs.connectstring is initiated to . "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=G:\Archivos de programa\Microsoft Visual Studio\VB98\Biblio.mdb;" Where the programer put the instrucction to relate the access database with te form ?
 
Are you in VB5 or VB6?<br>
Do you have a Data Control or did you use the ADO code method.<br>
If you have a data control (it's at the bottom of your form).<br>
It has arrows at each end of it so you can move through the records.<br>
This is automatically linked live.<br>
There is no code it's is built into VB.<br>
<br>
<p> DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br>
 
When i used the wizard (VB6) i say it to use a ado connection.<br>
The application was generated ok it's working ok.<br>
The things is that i want to learn of it, then am treating to follow the program with the debugger, and inspecting the code generated by the wizard but i dont found<br>
where the wizard define with what database to work.<br>
I want to know when o where the property DatPrimaryRs.connectstring is initiated to . &quot;PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=G:\Archivos de programa\Microsoft Visual Studio\VB98\Biblio.mdb;&quot; Ok i said in the original question &lt;&lt;Where the programer&gt;&gt; better &lt;&lt;where the wizard&gt; generate, put the instrucction to relate the access database with te form ? <br>
<br>

 
Put this instruction after the dim statements in your form open sub, that works for me.
 
In your form, you need to click on the ado control (at the bottom of the page)...Then, look under the property sheet and scroll down until you see the property named connection. That is where VB (via the wizard) has automatically connected the database to your application.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top