Mega Code Archive

 
Categories / VisualBasic Script / Access
 

AdCmdFile - The source is evaluated as a persisted recordset

Sub OptionsParameter()     Dim rst As ADODB.Recordset     Set rst = New ADODB.Recordset     rst.ActiveConnection = CurrentProject.Connection     rst.CursorType = adOpenStatic     rst.LockType = adLockOptimistic     rst.Open "Select * from Employees", _         Options:=adCmdFile     rst("City") = "Village"     rst.Update     Debug.Print rst("City")     rst.Close     Set rst = Nothing End Sub