The Weirdest thing keeps happening

  • Thread starter Thread starter Kan D.
  • Start date Start date
K

Kan D.

The Weirdest thing keeps happening:

Normal part:
1. I click on the elipses next to the event "On Dbl Click"
2. The "Choose Builder" dialog box appears.
3. I select "Code Builder".
4. It brings me into the module, with the cursor blinking in the center of
the new sub: myListbox_DblClick(Cancel As Integer)


Weird part:
1. I select the enter line:
Private Sub myListbox_DblClick(Cancel As Integer)
2. I copy this line to the clipboard.
3. I compile project (Alt D L)
4. It highlights the sub call: myListbox_DblClick
(this sub is called somewhere else in the module)
5. It says: "Compile Error: Sub or function not defined."

6. Weird part:
When do a Ctrl-F and paste what I copied to the clipboard into the
"Find What", then click "Find Next", it won't find the newly created sub
procedure: "Private Sub myListbox_DblClick(Cancel As Integer)"

7. Help.

Kan
 
nevermind, but respond anyway if you want to

i figured it out

i gotta put some code into that new procedure first, or access will wipe it
out, when it complies (alt D L)
 
Back
Top