Hello,
I have a situation in which I need to address three SQL Server 2000
Stored Procedure parameters in the OnClick event of an Option Group.
The Option Group lives on an Access 2000 ADP form.
In another situation where I had to set the RowSource of a combo box
based on a parameter value that was delivered to a proc from another
combo box, I did this:
Private Sub FirstCombo_Afte rUpdate()
Me.SecondCombo. RowSource = "EXEC dbo.ADStudentCo mbo_sp " &
Me.FirstCombo
End Sub
The above code sets the RowSource of the SecondCombo to the result of
the execution of dbo.ADStudentCo mbo_sp and the parameter sent to the
proc from the bound column of FirstCombo.
In my current situation, I just need to execute a proc and send three
parameters to the proc during the OnClick event. I started to try the
following:
Private Sub Completed_Click ()
If Me.Completed = 1 Then
"Exec dbo.ADTestProce ssEvaluator_sp " & Me.Permnum & Me.TestGrade
& Me.TestShortNam e
End If
End Sub
The actual parameters in the proc are as follows:
@Permnum varchar (12),
@TestGrade smallInt,
@TestShortName nvarchar (8)
How can I properly address the proc and its parameters during the
OnClick event of the ‘Completed' Option Group?
Thank you for your help!
CSDunn
I have a situation in which I need to address three SQL Server 2000
Stored Procedure parameters in the OnClick event of an Option Group.
The Option Group lives on an Access 2000 ADP form.
In another situation where I had to set the RowSource of a combo box
based on a parameter value that was delivered to a proc from another
combo box, I did this:
Private Sub FirstCombo_Afte rUpdate()
Me.SecondCombo. RowSource = "EXEC dbo.ADStudentCo mbo_sp " &
Me.FirstCombo
End Sub
The above code sets the RowSource of the SecondCombo to the result of
the execution of dbo.ADStudentCo mbo_sp and the parameter sent to the
proc from the bound column of FirstCombo.
In my current situation, I just need to execute a proc and send three
parameters to the proc during the OnClick event. I started to try the
following:
Private Sub Completed_Click ()
If Me.Completed = 1 Then
"Exec dbo.ADTestProce ssEvaluator_sp " & Me.Permnum & Me.TestGrade
& Me.TestShortNam e
End If
End Sub
The actual parameters in the proc are as follows:
@Permnum varchar (12),
@TestGrade smallInt,
@TestShortName nvarchar (8)
How can I properly address the proc and its parameters during the
OnClick event of the ‘Completed' Option Group?
Thank you for your help!
CSDunn
Comment