Hi there
As always any help appreciated. Have been using vbs to manage database for sometime but only recently realised its possible to use parameter queries with vbs. Something I thought was the luxury of vb.NET C#, etc.
However looking for a breif example of how I might use this in an insert statement
How to Build Parameter and then how to populate it and finally how to use it.
If I am inserting, doo I have to create a parameter even for known values?
Regards ACO
As always any help appreciated. Have been using vbs to manage database for sometime but only recently realised its possible to use parameter queries with vbs. Something I thought was the luxury of vb.NET C#, etc.
However looking for a breif example of how I might use this in an insert statement
Code:
Example follows.
Set cn = ADODB Connection 'short for example
Set cmd = ADODB Command
set parameter = cmd.CreateParameter
'This is where I get confused
'FixedValueField is alays the same text
INSERT INTO MyTable1 (VariableStringField, FixedStringFiled, MemoField)
VALUES(?, 'TestString', ?)
How to Build Parameter and then how to populate it and finally how to use it.
If I am inserting, doo I have to create a parameter even for known values?
Regards ACO