I have a question with converting data. I have a select query made in VBA, how can I convert from varchar
value column to nvarchar
.
I get this error:
Arithmetic overflow error converting numeric to data type numeric
This is my code:
Dim strSQL As String
Dim rst As New ADODB.Recordset
strSQL = " INSERT INTO dbo.Soferi_test (test1)" & _
" SELECT MySQL.dbo.sofieri.certificat_cipti " & _
" FROM MySQL.dbo.sofieri " & _
" WHERE IDNO = " & Forms!Forma_redactare_soferi!IDNO.Value
Call AttServ(strSQL, rst)