"object Required" Error 追蹤
Hello!, I'm barely new on this forum
I'm doing some tests on VBScripting, I went to "OnPrintJobEnd" event and tried to do my first steps with
Set Connection = CreateObject("ADODB.Connection")
Connection.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Seagull\BD\BarcodeData.mdb"
Set ID = Field("BARCODE", "0")
'Try to Update
Connection.Execute "UPDATE tb_IT_BarcodeListing_DB SET FLAGED=True WHERE BARCODE LIKE '%" & ID & "%';"
But the Scrip Assistant seems to be unhappy with something on this code because it throws the next error:
[quote]OnPrintJobEnd(Line 8): :Object required: '[string: 0]'[/quote]
I was looking for the object reference manual on the site, but I didn't found it.
Can anyone tell me what could be going wrong with it?
Thnks in advance! Santos.