Set objDatabase = CreateObject("ACTOLE.DATABASE") objDatabase.Open dbName bReturn = Login(objDatabase) ' assign the EMAIL table object Set objEmail = objDatabase.EMAIL objEmail.MoveFirst objEmail.Add ' set field data objEmail.Data EF_Logon, frmAddEmail.txtLogon.Text This line works fine in VB... objEmail.Data EF_Carrier, frmAddEmail.cboCarrier.Text strEmailID = objEmail.UpdateHere's the VFP Code:
o_actdb = CREATEOBJECT('ACTOLE.DATABASE') o_actdb.open(dbName) l_loggedin = Login(o_actdb) objEmail = l_actdb.email objEmail.movefirst() objEmail.add() objEmail.data(EF_Logon,"text") This is the line that generates the error!!! objEmail.data(EF_Carrier,"moretext") l_updated = objEmail.update()I have the same number of parameters as the VB example. All other code seems to work as I can see data already in ACT, just not add anything to it.