Hi,
I dunno has anyone come across this problem before - maybe I'm dreaming! I have noticed this happening in quite a few db's I've developed and used to pass it off as some quirky glitch.
I have been copying and pasting code from one form and using it in a second form. However it doesn't seem to "recognise" some of the copied procedures. For example I pasted the 1st forms OnError event code into the second form, compiled my vb, compacted and repaired my db and it wouldn't recognise the OnError code.
Then I went in and created it from scratch in the second form and only pasted the contents of the OnError procedure. It was identical to what I had before but now when I run the code it works. Absolutely identical, word for word.
I needed to create the code explicitly as copying and pasting it from another form didn't work. It was as if it wasn't there. I compiled and re-compiled, compacted, repaired, even restarted the machine tono avail.
Has anyone encountered this problem before, it's very disconcerting looking at perfect code behind a form and it ain't working for no good reason.
I dunno has anyone come across this problem before - maybe I'm dreaming! I have noticed this happening in quite a few db's I've developed and used to pass it off as some quirky glitch.
I have been copying and pasting code from one form and using it in a second form. However it doesn't seem to "recognise" some of the copied procedures. For example I pasted the 1st forms OnError event code into the second form, compiled my vb, compacted and repaired my db and it wouldn't recognise the OnError code.
Then I went in and created it from scratch in the second form and only pasted the contents of the OnError procedure. It was identical to what I had before but now when I run the code it works. Absolutely identical, word for word.
I needed to create the code explicitly as copying and pasting it from another form didn't work. It was as if it wasn't there. I compiled and re-compiled, compacted, repaired, even restarted the machine tono avail.
Has anyone encountered this problem before, it's very disconcerting looking at perfect code behind a form and it ain't working for no good reason.