Hi all,
I am new to Access so please don't be mean. I am developing an application on Access 2007 which is connected to a SQL Server 2008 database. In one of my forms I have a TreeView control and I need to fill it with entries from the database, I read that this is possible only programmatically, so I started implementing it:
Also tried:
I feel lost, I know that I am making a simple mistake somewhere(reference or some other property not set) but I have no idea where. I should say that the data base connection works fine when I use the Access forms to access data from SQL tables(all tables are available).
Thank you in advance!
Best Regards
artOf
I am new to Access so please don't be mean. I am developing an application on Access 2007 which is connected to a SQL Server 2008 database. In one of my forms I have a TreeView control and I need to fill it with entries from the database, I read that this is possible only programmatically, so I started implementing it:
Code:
Dim dbCurrent As DAO.Database
Set dbCurrent = CurrentDb '<- this call seems not to work, I tested it by declaring a test string variable and giving it the value CurrentDb.Name and it was empty.
Code:
Dim dbCurrent As DAO.Database
Set dbCurrent = DBEngine(0)(0) '<- this is also empty, the call DBEngine(0)(0).Count gives me 0...
Thank you in advance!
Best Regards
artOf