error message

G

Guest

I'm trying to create a form that will open another, filtered form when you
trigger an event (double click a record). Something has happened so that I
can't close the form once it is open or switch to form view if I have it in
design view (and vice versa). I get the following error message.

"This action will reset the current code in break mode.
Do you want to stop the running code?
* To halt the execution. . .
* To leave the code . . ."

I've tried "commenting" out all the code I've written thus far, thinking
that would solve any problems arising from my poor programing. Nonetheless,
I'm still geting the error message. When I click to halt the execution, the
same error just pops back up, again and again. Any clue what could be
causing this/how to fix it? The code I was using is below.

'Option Compare Database

'Private Sub cmdSearch_Click()
'open_Browser
'End Sub

'Option Compare Database

'Private Sub Company_DblClick(Cancel As Integer)
'Dim mode As String
'open_Entry (mode = "acFormReadOnly")
'End Sub

'Private Sub GroupTitle_DblClick(Cancel As Integer)
'Dim mode As String
'open_Entry (mode = "acFormReadOnly")
'End Sub

'Private Sub ID_DblClick(Cancel As Integer)
'Dim mode As String
'open_Entry (mode = "acFormReadOnly")
'End Sub

'Private Sub txtFullName_DblClick(Cancel As Integer)
'Dim mode As String
'open_Entry (mode = "acFormReadOnly")
'End Sub

'Option Compare Database

'Sub open_Browser()

'End Sub

'Sub open_Entry(mode)

'DoCmd.OpenForm "frm_Entry", acNormal, , "ID=" & Me.ID, mode

'End Sub
 
G

Guest

It is possible you saved the code while you had a breakpoint set. This will
cause the breakpoint to occur whenever you run the code after that. Open the
module, select clear all breakpoints, recompile and try again.
If that doesn't work, try 2 shots of Scotch and a Cuban cigar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top