Hi Jason,
I think you'll just need to make an ADO connection to the database and then pass through a SQL statement to modify the value of the field in the SOP Setup table.
Try something like this:
' Create an ADO record set.
' Create the ADO connection to be used.
' Initialize the connection string to specify a default database. In this case, the string is set to the current company. However, the string can be set to a constant. For example,' the string can be to “database=TWO.”
' Call the GPConnection.open method that is passing in the ADO connection that you created. When the connection returns, MyCon will be set to an open ADO connection.
'Create a string to contain an update call to the SOP setup table to update the USEACFRM field. Run the update command.
'Close the ADO connection in the typical way.
set recset = CreateObject("ADODB.Recordset")
set MyCon = CreateObject("ADODB.Connection")
MyCon.Connectionstring = "database=" + GPConnection.GPConnInterCompanyID
GPConnection.Open(MyCon)
updatecommand = "update SOP40100 set [USEACFRM]= 0"
' 0 is Item 1 is Customer
recset = MyCon.Execute(updatecommand )
'Close the ADO connection in the typical way.
MyCon.Close
Kind regards,
Leslie