What the error is telling you is that the result of the call $rs->Fields('AEName') does not result in writeable data - hence the change you made to $nTemplateID = $rs->Fields('AETemplateID'); (to read $nTemplateID = $rs->Fields('AETemplateID')->value;), but only in certain/that instance.
Why not try applying the same change to $rs->Fields('AEName') and $rs->Fields('ADAS_ID') i.e. to read $rs->Fields('AEName')->value and $rs->Fields('ADAS_ID')->value.
Just a suggestion,
HTH ,
In reply to Re: problem with script transfered from VBS
by Bloodnok
in thread problem with script transfered from VBS
by xiaoyafeng
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |