I have Access as FrontEnd and SQL server as Backend. After I call a stored procedure on the SQL server, I try to read the fields in the recordset. However, one of the column can only be used once. After the first use/read, it becomes NULL for no reason.
The problems is the first output gives the value and the second output shows nothing.
Customer1 = My Customer
Customer2 =
This is the same to the following thread. However, there was not answer to it.
Please help!
Code:
-----VBA in Access------ strSQL = "EXEC SP_GetDetails '" & strInput & "'" Set recSQL = ConnSQL.Execute(strSQL) Do While Not recSQL.EOF Debug.Print "Customer = " & recSQL!Customer Debug.Print "Customer again = " & recSQL!Customer ... recSQL.MoveNext Loop -----Stored Procedure in SQL Server----- CREATE PROCEDURE SP_GetDetails @RQFNumInput varchar(20) As select Customer From List where Number = @RQFNumInput Order by Date Desc -----------------------------------------
Customer1 = My Customer
Customer2 =
This is the same to the following thread. However, there was not answer to it.
Please help!
Comment