PDA

View Full Version : انتقال data از command به recordset



k.mirahmadian
یک شنبه 15 فروردین 1389, 12:02 عصر
سلام
من تازه با vb آشنا شدم
با connection , recordset و command کار کردم

اما هنگامی که command رو با recordset ست میکنم ، فقط حرکت رو به جلو داره

Public Sub connect()
comemp.ActiveConnection = cnnemp
comemp.CommandType = adCmdText
Dim sqlquery As String
sqlquery = "select * from employees"
comemp.CommandText = sqlquery
rctemp.CursorType = adOpenKeyset
rctemp.CursorLocation = adUseClient
Set rctemp = comemp.Execute
End Sub

لطف می کنید اگر راهنمایی کنید ؟؟