Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9052

Re: GRID Error Invalid query tree  [300-33]. The SQL error is -1

$
0
0

Hi Ankit Chauhan,
  i wrote your code in VB script. In the first Search its working, But when im going to search again I got an error of "Operation code missing  [300-13]" on that Underlined line. Although i change the condition to TRUE, its same error i get

 

 

If (IsFilled = False) Then

            sqlString = "EXEC DFS_SP_Interest " & dtto & " "

            oForm.DataSources.DataTables.Add("MYDATATABLE")

            oForm.DataSources.DataTables.Item(0).Clear()

            oForm.DataSources.DataTables.Item(0).ExecuteQuery(sqlString)

            oGrid = oForm.Items.Item("MyGrid").Specific

            oGrid.DataTable = oForm.DataSources.DataTables.Item("MYDATATABLE")

            IsFilled = True

        Else

            sqlString = "EXEC DFS_SP_Interest " & dtto & " "

            oForm.DataSources.DataTables.Item(0).Clear()

            oForm.DataSources.DataTables.Item(0).ExecuteQuery(sqlString)

            oGrid = oForm.Items.Item("MyGrid").Specific

            oGrid.DataTable = oForm.DataSources.DataTables.Item("MYDATATABLE")

        End If

 

 

Thanks,


Viewing all articles
Browse latest Browse all 9052

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>