flaviooooo
Programmer
Hey,
I have a Stored Procedure, which I trigger in my ADP-file. It uses some parameters from a form.
The SP needs to fill a table with data from several tables, and consists of several 'update'-queries.
Now, when I run this Sp through the code, it seems that it doesn't reach the last 2 update-queries? That data remains empty in the table.
When I run the exact same SP on the SQL-server itself, everything fills OK.
I run the code in the following manner:
Any ideas on what can cause this??
Thanks in advance
Kind regards
I have a Stored Procedure, which I trigger in my ADP-file. It uses some parameters from a form.
The SP needs to fill a table with data from several tables, and consists of several 'update'-queries.
Now, when I run this Sp through the code, it seems that it doesn't reach the last 2 update-queries? That data remains empty in the table.
When I run the exact same SP on the SQL-server itself, everything fills OK.
I run the code in the following manner:
Code:
Dim strsql As String
'Stored Procedure build with following Parameters
'@COMPA
'@BRAND
'@IMPORTDATE
'@REQDATE
'@STOCKDATE
strsql = "Exec spReportReqW " & _
"'" & [Forms]![frmRapporten]!cmbOrigine_Type.Column(2) & "', " & _
"'" & SQLDate([Forms]![frmRapporten]!cmbSAPDate) & "', " & _
"'" & SQLDate([Forms]![frmRapporten]!cmbReqDate) & "', " & _
"'" & SQLDate([Forms]![frmRapporten]!cmbStockDate) & "'"
Debug.Print strsql
DoCmd.RunSQL strsql
Any ideas on what can cause this??
Thanks in advance
Kind regards