Re: Unexplained code is running!

Tech-Archive recommends: Fix windows errors by optimizing your registry



Tom, I think you should have gone to bed. I didn't mean (or say)
File|Export, but the undocumented Application.SaveAsText method, which
exports a seemingly complete specification of the form, its controls,
and code. E.g., in the Immediate pane,

Application.SaveAsText acForm, "2Line", "C:\Temp\2line.bas"

On Tue, 7 Feb 2006 02:13:57 -0600, "Tom Ellison" <tellison@xxxxxxxxxxx>
wrote:


Dear John:

OK, maybe I'm not doing what you said.

Files/Export then Save as type: Text files. Click Export and that's it,
right?

The text file is created. It is empty.

So, what's up with that? The database has one object, a form. The form has
a detail section with nothing on it.

Tom Ellison


"John Nurick" <j.mapSoN.nurick@xxxxxxxxxxxxxx> wrote in message
news:i8kgu1t32do0v9icu3ak0u88vghaiqk7si@xxxxxxxxxx
Hi Tom,

Export the form using Application.SaveAsText. Is there anything
unexpected in the text file?

Create a new empty MDB and use Application.LoadAsText to import the form
from the text file. Any improvement?

On Tue, 7 Feb 2006 01:06:10 -0600, "Tom Ellison" <tellison@xxxxxxxxxxx>
wrote:


Dear Marsh:

Oh, yeah, about the possible class module. I searched all the VBA code
for
the name of the company that shows up in the message box. It's not coded
anywhere.

Tom Ellison


"Marshall Barton" <marshbarton@xxxxxxxxxx> wrote in message
news:1ifgu15j12tvq4lltuoj2jjfm2omuk548c@xxxxxxxxxx
Tom Ellison wrote:

A client has sent me an MDB to which he wishes to have alterations.

When I open the database MDB I get a custom error message, that is, a
programmed message box. It refers to the company name of those who
originally programmed it. If I open the database with Shift and then
attempt to open the main form, I get the same error message. I have
removed
everything from this form. All that remains is the form and the detail
section. Still the error message occurs when the form opens. If I
remove
the Open event, then it does not. So, I removed all the code for the
form,
and created my own Open event, with no code. The error message is back.
I
removed the open event and created an OnActivate event. The message is
back.

So, it would seem there must be come code that executes on any event you
add
to this form. It would appear that this code contacts the developer's
website for permission. Now that's some kind of copy protection!

In order to contact my client and explain this to him, I'd really like
to
know what is going on. He has told me he has full proprietary rights to
this software. Indeed, he originally had only and MDE to this front
end,
but he has obtained an MDB from the people he hired to do the work.

I'm trying to respect everyone's rights here. I now have all their code
and
the ability to modify it. But I cannot RUN it. Wierd, eh?

Perhaps I'd like to add this kind of copy protection to my applications
as
well. I'm thinking this pings their server and it checks my address for
validity, because my client never has this problem. Or maybe it's just
the
Computer Network Name or something like that it checks. It's really
awfully
quick for pinging somewhere accross the net.


That is a pretty neat trick, Tom. The only idea that comes
to mind is that there is some class module that's sinking
the form's events. But I think there must be some code in
the form to hook it up.

What happens if you open a copy of the form?

What if you set the form's HasModule property to No?

--
Marsh
MVP [MS Access]



--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.




--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.

.



Relevant Pages

  • Re: Unexplained code is running!
    ... Tom Ellison ... attempt to open the main form, I get the same error message. ... Still the error message occurs when the form opens. ... and created my own Open event, ...
    (microsoft.public.access.formscoding)
  • Re: Unexplained code is running!
    ... Create a new empty MDB and use Application.LoadAsText to import the form ... attempt to open the main form, I get the same error message. ... Still the error message occurs when the form opens. ... and created my own Open event, ...
    (microsoft.public.access.formscoding)
  • Re: Unexplained code is running!
    ... Create a new empty MDB and use Application.LoadAsText to import the form ... attempt to open the main form, I get the same error message. ... Still the error message occurs when the form opens. ... and created my own Open event, ...
    (microsoft.public.access.formscoding)
  • Re: Unexplained code is running!
    ... Create a new empty MDB and use Application.LoadAsText to import the form ... attempt to open the main form, I get the same error message. ... Still the error message occurs when the form opens. ... and created my own Open event, ...
    (microsoft.public.access.formscoding)
  • Re: Error messages upon opening IE
    ... "Tom" wrote in message ... > consecutively, I get one error message, and in the ... > background, IE opens... ... Windows Update does not work and I've ...
    (microsoft.public.windows.inetexplorer.ie6.browser)