L
lemes_m
Hi all!
I have stored procedure "SPStorniranjeUKRP" with two parameters,
@VrNaloga (smallint) and @IdNaloga (smallint). When I try to execute
this procedure from VBA code (MS Access) I use following command:
DoCmd.RunSQL "EXEC SPStorniranjeUKRP @VrNaloga= " &
[Forms]![FRMUlazneKalkulacijeRPPr]![UKRPNalogVrsta] & ", @IdNaloga= " &
[Forms]![FRMUlazneKalkulacijeRPPr]![UKRPNalogId] & ""
I also tried:
DoCmd.RunSQL "EXEC SPStorniranjeUKRP @VrNaloga smallint= " &
[Forms]![FRMUlazneKalkulacijeRPPr]![UKRPNalogVrsta] & ", @IdNaloga
smallint= " & [Forms]![FRMUlazneKalkulacijeRPPr]![UKRPNalogId] & ""
Does someone knows what's wrong with this code. I mention that I tried
to run this SP with both parametars separately and it works fine.
Regards,
Mirnes Lemes
I have stored procedure "SPStorniranjeUKRP" with two parameters,
@VrNaloga (smallint) and @IdNaloga (smallint). When I try to execute
this procedure from VBA code (MS Access) I use following command:
DoCmd.RunSQL "EXEC SPStorniranjeUKRP @VrNaloga= " &
[Forms]![FRMUlazneKalkulacijeRPPr]![UKRPNalogVrsta] & ", @IdNaloga= " &
[Forms]![FRMUlazneKalkulacijeRPPr]![UKRPNalogId] & ""
I also tried:
DoCmd.RunSQL "EXEC SPStorniranjeUKRP @VrNaloga smallint= " &
[Forms]![FRMUlazneKalkulacijeRPPr]![UKRPNalogVrsta] & ", @IdNaloga
smallint= " & [Forms]![FRMUlazneKalkulacijeRPPr]![UKRPNalogId] & ""
Does someone knows what's wrong with this code. I mention that I tried
to run this SP with both parametars separately and it works fine.
Regards,
Mirnes Lemes