This is the test program I made.
SQL Server 2000 side.
CREATE PROCEDURE dbo.gensp_GetSearchResults1 (@p_vkeyword varchar(128)
AS
declare @SQL varchar (400)
Set ...
exec (@SQL)
GO
Based on SQL Syntax Checking, the above code has no error.
The code below, I made in Access Code 2000
Dim adoConnection As ADODB.Connection
Dim adoCommand As ADODB.Command
Dim adoParm As ADODB.Parameter
Dim rsSet As ADODB.Recordset
Dim strName As String
Set adoConnection = New ADODB.Connection
adoConnection.Open "ODBC;DATABASE=cdiSeiko;UID=sa;PWD=;DSN=cdiSeiko"
Set adoCommand = New ADODB.Command
adoCommand.CommandText = gensp_GetSearchResults1
adoCommand.CommandType = adCmdStoredProc
strName = Trim(InputBox("Enter Name : "))
Set adoParm = adoCommand.CreateParameter("@p_vkeyword", adVariant, adParamInput, , strName)
adoCommand.Parameters.Append adoParm
Set adoCommand.ActiveConnection = adoConnection
Set rsSet = adoCommand.Execute
The Error -> "Parameter type is not supported" in "Set rsSet = adoCommand.Execute"
Your kind help is very much appreciated.