I am trying to convert an Access 2003 application to Access 2013 and SQL Server. In the process of trying to understand and modify the code I am using the VBA debugger to step into the first form that gets loaded. However as soon as I press run there appears a popup box listing a single Macro "UserRoster". When I select Run in the popup box it shows the following in Immediate "PC1 Admin -1" At this point I cannot go any further in the debugging process - it just ends? Why does this get invoked? Here is what the code looks like:
Code:
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
' UtilityFunctions '
' '
' This module contains useful functions that you '
' can use in expressions on your forms and reports. '
' '
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Option Explicit ' Require variables to be declared before being used.
Option Compare Database ' Use database order for string comparisons.
Public Const JET_SCHEMA_USERROSTER = "{947bb102-5d43-11d1-bdbf-00c04fb92675}"
and again
Code:
'Sub UserRoster()
Dim cnn As ADODB.Connection
Dim rst As ADODB.Recordset
Set cnn = New ADODB.Connection
'cnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=y:\TPA Pro\TPAPRodata.mdb"
cnn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\TPA Pro\Working\TPAPRodata.mdb"
cnn.Open
Set rst = cnn.OpenSchema(adSchemaProviderSpecific, _
, JET_SCHEMA_USERROSTER)
Debug.Print rst.GetString
End Sub
Any ideas on how to get past this?