I am having difficulty with the overload constructor in Chapter 8. I have added the existing WDABase.
vb file to my DB Migration Utility along with the code shown on pages 161-163. However, when I run the project I receive an error that ProjectTimeTracker could not be opened.
If I understand the overload constructor properly, I should have two "Public Sub New" in the WDABase class so it will open up SQL with the Public Sub New(ByVal...) and open up the MS Access ProjectTimeTracker database with Public Sub New(). However, when I enter the code as given on pages 161-163, it opens the connection for SQL and then seems to try to open ProjectTimeTracker from the txtDatabase textbox and not access the app.config file where the extension to my MS Access database is located. If I edit the Private Sub btnOpenConnection_Click(ByVal...) code on page 162 by replacing objData=New WDABase(strProvider...) with objData=New WDABase() it then accesses the Public Sub New() code that references the app.config file and the MS Access ProjectTimeTracker database is opened successfully ("Database opened" is shown), however, SQL is not connected.
I have looked over the code several times and cannot see how the code shown will be able to connect to your Access database and to SQL Server as stated in step 13. Any assistance would be appreciated!