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/