Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a Stored Procedure

Status
Not open for further replies.

primagic

IS-IT--Management
Jul 24, 2008
476
GB
I have the following stored procedure which executes perfectly on a click event of a button. however, when I add the code to an afterupdate event, it wont execute.

Any reason why?

Code:
Dim cmdCommand As New ADODB.Command

With cmdCommand
    .ActiveConnection = CurrentProject.Connection
    .CommandType = adCmdStoredProc
    .CommandText = "UpdateScores"

        '@intDocumentNo
        .Parameters("@StatusScore").Value = Forms!frmLeads!frmScoreSummary.Form.Text6

        '@intCustomerNo
        .Parameters("@LeadID").Value = Me![LeadID]

    .Execute

End With
 
If you put a breakpoint in the code, does it actully ever get to the code itself?

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top