ADO problems 
Author Message
 ADO problems

Hello,

I uses the Microsoft DataGridControl version 6 (OLEDB) and the
Microsoft Ado control version 6.  
Over the characteristics I can select the data base Microsoft 4.0 Ole jet to
select and the path of an ACCESS data base to indicate. ->  Functions.  

How I edit control however with the DataGrid, although I permit only READ
terminate I with ESC entire application, which is bad.  Why?

I would like to select however the path from a Ini file now and open the data
base.
Does not function.  Why?  I tried that.

OOL CADOTestDlg::OnInitDialog()
{
        CDialog::OnInitDialog();
        ....
        CString sName = m_Ado.GetUserName_();
        sName = m_Ado.GetConnectionString();
        sName = m_Ado.GetRecordSource();

        CString sName = m_Ado.GetUserName_();
        sName = m_Ado.GetConnectionString();
        sName = m_Ado.GetRecordSource();

//  m_Ado.SetConnectionString("Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\\Test.mdb;Mode=Read;Persist Security Info=False");
//      m_Ado.SetRecordSource("select * from adresse");
//      sName = m_Ado.GetConnectionString();
//      sName = m_Ado.GetRecordSource();
//      m_Ado.Refresh();
//      m_DatGrid1.Refresh();
//      m_DatGrid1.ReBind();

Regards Alex

--
_____________________________________________________________
NewsGroups Suchen, lesen, schreiben mit http://www.*-*-*.com/



Sun, 02 Nov 2003 14:06:03 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ATL / ADO problems while closing connection

2. free threaded ATL, MTS, ADO problem

3. Wierd ADO problem

4. Multi-threaded ADO problem in VC++

5. An ADO Problem

6. ADO problem

7. CHAR, adVarWChar, ADO problem.

8. ADO Problem with calling a stored procedure in MS Access 2000

9. COM / ADO - Problems while closing connection

10. ADO problem accessing dBASE tables

11. |||||||||| ADO : PROBLEM WITH MoveFirst AND EndOfFile under Visual C++ 6.0 |||||||||||

12. |||||||| ADO : Problem with msado15.tlh file in MFC Extension DLL ||||||||

 

 
Powered by phpBB® Forum Software