> Hello,
>
[quoted text clipped - 23 lines]
> I am doing something wrong?
> Thanks in advance
Two things:
1. Use the Command.CreateParameter method to create new parameters.
2. The type should be adDBTimeStamp (yes the mnemonics are very confusing in
this case.)
And a couple of other little things, that may not actually break your code,
but are still worth mentioning... It's difficult to say without knowing what
db_H is, but Cmd.ActiveConnection is an object, and so should be assigned
using the Set keyword, e.g.,
Set Cmd.ActiveConnection = MyConnectionObject
And also, using the Set Object As New Type syntax with ADO objects is not a
well-regarded practice at all, it tends to cause memory leaks. I don't know
of a single experienced VB programmer that advocates using it; that it's
best avoided is a widely held viewpoint.
-Mark
> Pedro
MikeD - 28 Feb 2007 14:50 GMT
> And also, using the Set Object As New Type syntax with ADO objects is not
> a well-regarded practice at all, it tends to cause memory leaks. I don't
> know of a single experienced VB programmer that advocates using it; that
> it's best avoided is a widely held viewpoint.
I think you mean DIM Object As New Type.....and it's not just ADO that this
syntax is frowned upon.

Signature
Mike
Microsoft MVP Visual Basic