# Need help in Indusoft SCADA VBscript program

**URL:** <https://forumautomation.com/t/need-help-in-indusoft-scada-vbscript-program/489>\
**Category:** Industrial Automation\
**Created:** [September 11, 2015, 5:42am UTC](https://forumautomation.com/t/need-help-in-indusoft-scada-vbscript-program/489 "2015-09-11T05:42:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yogesh\_Sarode](https://forumautomation.com/letter_avatar_proxy/v4/letter/y/b77776/32.png) [@Yogesh\_Sarode](https://forumautomation.com/u/Yogesh_Sarode)\
**Post date:** [September 11, 2015, 5:42am UTC](https://forumautomation.com/t/need-help-in-indusoft-scada-vbscript-program/489/1 "2015-09-11T05:42:58Z")

</div>

Facing some problem while developing SCADA. Kinldy give some solution for below problems.

1. While using Update statement I want to use tag instead of values e.g $DBUpdate(“sajja”,“MFG1\_EMPTY\_DETAILS”, $Date ,“MFG1\_EMPTY\_DATE”) $DBUpdate(“sajja”,“MFG1\_EMPTY\_DETAILS”, $Time ,“MFG1\_EMPTY\_TIME”) Its showing “Script is OK “ but it is not showing the current date and time in DB.It copying same $Date and $Time in DB
2. using Delete statement I want to use tag instead of values e.g Query 1: $DBDelete( “sajja”, “Recipe”, “REC\_Product\_Code = $RECIPE\_SEL[1]”, “” )

Query 2:

Dim A A= "Delete from Recipe where REC\_Product\_Code = $RECIPE\_SEL[1] " $DBExecute(“sajja”,A) Its showing “Script is OK “ but not working. If I use product code directly instead of $RECIPE\_SEL[1] then it I working Ok.
