Hello,
I have to add some data in a sql table when the user press a button.
I think I have to do this programmatically.
So I've tried to use ADO connection, but it doesn't work...
That's what I've done :
Dim mConnection Set mConnection = CreateObject("ADODB.Connection")
mConnection.Open "Provider=SQLOLEDB.1;Data Source=SRVTRAD1\INSD01;Initial Catalog=EL1EEDPCentre;Integrated security=SSPI" mConnection.Open "server=SRVTRAD1\INSD01;database=EL1EEDPCentre;Integrated Security=SSPI;"
result = mConnection.Execute("EXECUTE IC.prc_LapWeb_Insert @bookEmpID = " & fldMatricule & ", @bookEmail = " & fldEmail & ", @bookBegin = " & fldBegindate & ", @bookEnd = " & fldEnddate & ", @bookType = " & fldHardwaretype & ", @Comment = " & fldComment & ", @Status = 1")
At the MConnection.Open, Ive this message : safety settings on this computer prohibit accessing a data source on another domain
Where am I wrong? Is there another way to do this?
Thank you very much
kr
Xavier