I am trying to query a ACCESS 97 Data Base, with an ADO data control. How do I write code to query information from the mdb. to a DataGrid?<br><br><A HREF="mailto:christopher.seidel@mhn.com">christopher.seidel@mhn.com</A>
Use the Data Form Wizard and let it create everything for you.<br>Click the Add-Ins menu<br>Then Add-In Manager<br>Then find VB 6 Data Form Wizard in the list.<br>Highlight it.<br>Then in the "Load behavior" options click the top two.<br>Then click OK<br>Now click the "Add-Ins" menu again<br>and you will see a new option at the bottom called "Data Form Wizard"<br>Click it and follow the prompts it will let you connect to an Access database.<br>
<br>Let me know how this works for you. For the ADO control <br>call the following:<br><br>adoctl.Database = "the_path_to_the_database"<br>adoctl.rowsource ="The_sqlString_orTable_orQuery"<br>aodctl.requery<br><br>ctrlLinkedToADOControl_LikeADataGridforInstance.refresh<br><br>Let me know if this fixes the problem.<br><br><br><br><br> <p>Amiel<br><a href=mailto:amielzz@netscape.net>amielzz@netscape.net</a><br><a href= > </a><br>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.