I wrote the following function in 97:
------------------------------------------------------------
Dim db As database
Dim rst As Recordset
Dim query As String
Let query = "SELECT * FROM EXPORT2 WHERE chauffeur = " & Me.KzeI.Column(0) & " and Naam = " & Me.KzeI.Column(1)
Set db = CurrentDb()
Set rst = de.openrecordset(query)
rst.MoveFirst
Do Until rst.EOF
rst.edit
rst![vinkje] = True
rst.Update
rst.Close
Loop
------------------------------------------------------------
But in XP the set db as database and rst.edit aren't available.
I think I fixed the first part, but the .edit is still a mistery, can anyone help me with this. Either give me the current function for .edit or rewrite the whole function.
This is what I've got so far:
Dim db As Connection
Dim rst As Recordset
Dim query As String
Let query = "SELECT * from EXPORT2"
Set db = CurrentProject.Connection
Set rst = db.openrecordset(query)
rst.MoveFirst
Do Until rst.EOF
rst.edit
rst![vinkje] = True
rst.Update
rst.Close
Loop
------------------------------------------------------------
Dim db As database
Dim rst As Recordset
Dim query As String
Let query = "SELECT * FROM EXPORT2 WHERE chauffeur = " & Me.KzeI.Column(0) & " and Naam = " & Me.KzeI.Column(1)
Set db = CurrentDb()
Set rst = de.openrecordset(query)
rst.MoveFirst
Do Until rst.EOF
rst.edit
rst![vinkje] = True
rst.Update
rst.Close
Loop
------------------------------------------------------------
But in XP the set db as database and rst.edit aren't available.
I think I fixed the first part, but the .edit is still a mistery, can anyone help me with this. Either give me the current function for .edit or rewrite the whole function.
This is what I've got so far:
Dim db As Connection
Dim rst As Recordset
Dim query As String
Let query = "SELECT * from EXPORT2"
Set db = CurrentProject.Connection
Set rst = db.openrecordset(query)
rst.MoveFirst
Do Until rst.EOF
rst.edit
rst![vinkje] = True
rst.Update
rst.Close
Loop