S
Snake
I am trying to make a connection to an access DB, I can fill the recordset but when i bind the recordset to the grid no rows are shown.
This is the javascript code I am using:
var cnn = new ActiveXObject("ADODB.Connection");
var rs = new ActiveXObject("ADODB.Recordset");
var strSQL = "SELECT Project, ProjectUniqueId FROM PROJECTS";
cnn.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\projects.mdb");
rs = cnn.Execute(strSQL);
MSPJGrid.Binding = rs;
MSPJGrid.FieldList = "Project<100>,ProjectUniqueID";
MSPJGrid.Outlining = false;
MSPJGrid.GanttView = false;
MSPJGrid.Refresh();
All the html code I use is from a sample on the microsoft site.
What am I doing wrong?
Best regards,
Lieven
This is the javascript code I am using:
var cnn = new ActiveXObject("ADODB.Connection");
var rs = new ActiveXObject("ADODB.Recordset");
var strSQL = "SELECT Project, ProjectUniqueId FROM PROJECTS";
cnn.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source=C:\\projects.mdb");
rs = cnn.Execute(strSQL);
MSPJGrid.Binding = rs;
MSPJGrid.FieldList = "Project<100>,ProjectUniqueID";
MSPJGrid.Outlining = false;
MSPJGrid.GanttView = false;
MSPJGrid.Refresh();
All the html code I use is from a sample on the microsoft site.
What am I doing wrong?
Best regards,
Lieven