I've been working with an old project that was originally done in VB5 using DAO, DAO Data controls and a Access 97 MDB
My goal is to move it to VB6, ADO and no data controls
The issue is with a form that has a DBGrid control on it. [the one from VB5]
I first tried setting the datasource to my recordset object but I get an automation error when I try that and of course it does not work.
I changed the the form to use the DataGrid control instead but when I set the data source of that one it does not seem to bind correctly.
So when using the DataGrid and using the code Set DataGrid1.DataSource=LocalRS It binds but only gets the first 2 columns from the recordset.
I don't normally use bound controls so I am a bit fuzzy on how this should be done, seems like it must be a simple problem but I am stuck at the moment.
I have found several examples online but they all seem to do what I have did but still only 2 columns where there should be several.
Any ideas?
My goal is to move it to VB6, ADO and no data controls
The issue is with a form that has a DBGrid control on it. [the one from VB5]
I first tried setting the datasource to my recordset object but I get an automation error when I try that and of course it does not work.
I changed the the form to use the DataGrid control instead but when I set the data source of that one it does not seem to bind correctly.
So when using the DataGrid and using the code Set DataGrid1.DataSource=LocalRS It binds but only gets the first 2 columns from the recordset.
I don't normally use bound controls so I am a bit fuzzy on how this should be done, seems like it must be a simple problem but I am stuck at the moment.
I have found several examples online but they all seem to do what I have did but still only 2 columns where there should be several.
Any ideas?