I am using access 2000 and this is an ADP project.
Does anyone see anything wrong with the function.
the first if works find, its finds the store proc and runs it.
When I get into the case section I get error 2580 it cant find the store proc.
I can see all 3 proc in the store proc tab in.
I can run all three proc from sql anlay with nop problems.
thanks for any help
G
Does anyone see anything wrong with the function.
the first if works find, its finds the store proc and runs it.
When I get into the case section I get error 2580 it cant find the store proc.
I can see all 3 proc in the store proc tab in.
I can run all three proc from sql anlay with nop problems.
thanks for any help
G
Code:
Private Sub cmd_search_Click()
Dim strSql As String
'MsgBox Me.Fram_search.Value
'MsgBox Me.txt_search.Value
' this one works great
If IsNull(Me.txt_search.Value) Then
Me.subfrmdata.Visible = True
Me.subfrmdata.Form.RecordSource = "EXEC dbo.PROCGETALL"
Else
Select Case Me.Fram_search.Value
Case 1
' this one it cant find.
Me.subfrmdata.Visible = True
Me.subfrmdata.Form.RecordSource = "EXEC dbo.getinv"
Me.subfrmdata.Form.InputParameters = "@invno=[forms]![frmsearch]![txt_search].Value"
Case 2
Me.subfrmdata.Visible = True
Me.subfrmdata.Form.RecordSource = "EXEC dbo.procgetmatterno"
Me.subfrmdata.Form.InputParameters = "@matterno=[forms]![frmsearch]![txt_search].Value"
End Select
End If
End Sub