Haven't programmed in access in a while, so i am a bit rusty
I am trying to assign a vlue to the column in a table
(based on content of other criteria), but i am stuck in the first step
how do i say that i want 16th column to become "2" for all records ?
.Fields(16).Value = 2
Code:
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim strSQL As String
Set db = CurrentDb()
strSQL = "SELECT * FROM qryResult qryResult"
Set rst = db.OpenRecordset(strSQL, dbOpenDynaset)
rst.MoveFirst
Debug.Print Z
With rst
Do While .EOF = False
.Edit
.Fields(16).Value = 2
.MoveNext
Loop
End With
rst.Close