Herewith my code to call the mdb on form open:
Expand|Select|Wrap|Line Numbers
- SalAdodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\Data\Sal.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
- SalAdodc1.RecordSource = "SELECT * FROM Table1"
- SalAdodc1.Refresh
- If Not SalAdodc1.Recordset.EOF Then SalAdodc1.Recordset.MoveFirst
- SalAdodc2.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\Data\Sal.mdb;Mode=ReadWrite|Share Deny None;Persist Security Info=False;Mode=ReadWrite|Share Deny None;Persist Security Info=False"
- SalAdodc2.RecordSource = "SELECT * FROM Staff"
- SalAdodc2.Refresh
- If Not SalAdodc2.Recordset.EOF Then SalAdodc2.Recordset.MoveFirst
Have added this code in to see if it will not help with no luck
Expand|Select|Wrap|Line Numbers
- Set Text21.DataSource = SalAdodc2
- Set Text22.DataSource = SalAdodc2
- Set Text23.DataSource = SalAdodc2
Werner