> For an "instance key" I save the hWnd of the initial form.
Dear Robert:
I am specifically NOT doing this server side. Not that your suggestion
might not work.
If there were multiple instances of the same Access front end on a computer,
would each have it's own connection. I think so.
But how would it be better? Any simple thing, like a number, that is
guaranteed to be unique to an instance of the front end, would work. The
hWnd of the initial form would be such a value. You would have to compound
that with the Computer Network Name to be universally unique.
Now the SPID would be universally unique by itself. If it were not valuable
to know the Network Computer Name (as I have found it to be) then, when I
think of it, the SPID would be better. But knowing the Computer Network
Name is diagnostic for me when things created "temporarily" get orphaned.
The design for me has been to remove them when finished. A system crash or
crash of the front end sometimes orphans them. Being able to identify
problems with this happening has been useful, so the Network Computer Name
is a good thing to know.
Your thinking here is good. My experience leads me to prefer what I have
described, but you certainly have the right idea.
Tom Ellison
>> For an "instance key" I save the hWnd of the initial form.
>
[quoted text clipped - 4 lines]
> Thanks,
> Rob
Robert Morley - 23 Feb 2006 23:40 GMT
Thanks, Tom. Just wanted to make sure there wasn't some hidden drawback to
SPID that I wasn't aware of.
I do agree with you, though, the network computer name is invariably useful,
and I make sure to log that and a number of other important pieces of
information for error-logging, user-tracking and the like.
Rob