E
E Scrubb
Hi all - this is driving me nuts - the runtime errors in a particular
database seem to have been turned off. The following code is the a test
module:
Private Sub test_Write()
DoCmd.SetWarnings (True)
Dim cnn As ADODB.Connection
Dim rst As ADODB.Recordset
Set cnn = CurrentProject.Connection
Set rst = New ADODB.Recordset
rst.Open "something", cnn
Debug.Print "we're inside"
The database that I've created has no table or query named 'something'
yet I receive no errors from access when trying to run this code - nor
does the debug.print ever get executed. I have set the Tools->Options->
General to 'Break on All errors' and still I get no response from this
code.
Interesting enough, when I use this code in any other database - I
correctly get a set of errors letting me know that 'something' either
doesn't exist or isn't a valid SQL statement - any help would be
appreciated - thanks, Neal
database seem to have been turned off. The following code is the a test
module:
Private Sub test_Write()
DoCmd.SetWarnings (True)
Dim cnn As ADODB.Connection
Dim rst As ADODB.Recordset
Set cnn = CurrentProject.Connection
Set rst = New ADODB.Recordset
rst.Open "something", cnn
Debug.Print "we're inside"
The database that I've created has no table or query named 'something'
yet I receive no errors from access when trying to run this code - nor
does the debug.print ever get executed. I have set the Tools->Options->
General to 'Break on All errors' and still I get no response from this
code.
Interesting enough, when I use this code in any other database - I
correctly get a set of errors letting me know that 'something' either
doesn't exist or isn't a valid SQL statement - any help would be
appreciated - thanks, Neal