Article ID: 176561
Article Last Modified on 4/18/2003
CREATE TABLE TimestampTbl
(ID int identity, name char(30) NULL, stamp Timestamp)
INSERT INTO TimeStampTbl (name) Values("RoadRunner")
CREATE PROCEDURE spID_Timestamp
@theID int,
@theTS TimeStamp
As
SELECT * FROM TimestampTbl WHERE ID=@theID AND stamp=@theTS
Private Sub Form_Load()
Dim cn As New UserConnection1
Dim rs1 As rdoResultset
Dim rs2 As rdoResultset
Dim Timestamp As Variant
cn.EstablishConnection
Set rs1 = cn.OpenResultSet("Select ID, Stamp From TimeStampTbl")
Timestamp = rs1(1)
cn.Query1 rs1(0), Timestamp
Set rs2 = cn.LastQueryResults
Debug.Print "rs2(0): " & rs2(0)
End Sub
166281 HOWTO: Create and Implement a UserConnection
170380 HOWTO: Display/Pass Timestamp Value from/to SQL Server
Keywords: kberrmsg kbprb KB176561