Hi, I am pretty new to VB script. I tried to set a variable BranchID in the script and later use as input parameter to my stored procedure. But the compiler failed with error "Handles clause requires a WithEvents variable defined in the containing type or one of its base types". My script is as below. Any suggestion would be appreciated.
Sub Branch1Button_Click( sender As Object, e As EventArgs ) Handles Branch1Button.Click
ThisForm.Variables( "BranchID" ).Value = "HOU"
End Sub