L
lemes_m
Hi All!
I have stored procedure called "UpdatingInvoices" that updates field
"OrderNo" in table "Invoices". Value should be taken from one form and
I tried to do it by puting parameter in
my stored procedure called @Order.
When user submits updating I run following code and ADO command behind
form:
Private Sub cmdSave_Click()
DoCmd.RunCommand acCmdSaveRecord
Call UpdatingInvoices
End Sub
Function UpdatingInvoices()
Dim qdfCurr As DAO.QueryDef
Set qdfCurr = CurrentDb().QueryDefs("UpdatingInvoices")
qdfCurr.SQL = "Exec UpdatingInvoices @Order = " & me.OrderNumber &
""
End Function
If I run stored procedure from Database container and manualy enter
parameter value, stored procedure updates table, but not with this
code. Anyone knows the solution?
I have stored procedure called "UpdatingInvoices" that updates field
"OrderNo" in table "Invoices". Value should be taken from one form and
I tried to do it by puting parameter in
my stored procedure called @Order.
When user submits updating I run following code and ADO command behind
form:
Private Sub cmdSave_Click()
DoCmd.RunCommand acCmdSaveRecord
Call UpdatingInvoices
End Sub
Function UpdatingInvoices()
Dim qdfCurr As DAO.QueryDef
Set qdfCurr = CurrentDb().QueryDefs("UpdatingInvoices")
qdfCurr.SQL = "Exec UpdatingInvoices @Order = " & me.OrderNumber &
""
End Function
If I run stored procedure from Database container and manualy enter
parameter value, stored procedure updates table, but not with this
code. Anyone knows the solution?