Hi
I please need some help with an error that I am receiving in my custom developed Dynamics screen.
Upon trying to save die values in my grid I get an error saying Cursor specified SqlReadOnly flag. (Please see image)
I use the following sub to ave the data to my table
Private Sub InsertEmployeeDetails()
Dim strSQL As String
Dim strSQL1 As String
Dim csr_Insert As Short
'Open buffer for table
strSQL = "Select * from xPJEMPLOY"
serr = SqlFetch1(csr_Insert, strSQL, bxPJEMPLOY)
'' ** set values
With bxPJEMPLOY
.EmpID = bxPJEMPLOY.EmpID 'new asset
.EmpName = EmpName.CtlText
.EmpStatus = EmpStatus.CtlText
.EmpDescr = bxPJEMPLOY.EmpDescr
End With
'Insert records
Call SInsert1(csr_Insert, "xPJEMPLOY", bxPJEMPLOY)
Call SqlFree(CSR_xPJEmploy)
End Sub
Can someone please help me in the right direction to get the data saved?