J
JimS
I want to set a column to false on every record in a subform's recordset.
Here's the code. I tried using the command "Set rst=...." and got an error
message. Then I removed the word "Set" and got "invalid use of property"...
Private Sub btnLockAll_Click()
Dim rst as new recordset
rst=Me.sfmPOLine.Form.RecordsetClone
rst.movefirst
While not rst.eof
rst!POLineAllowImportUpdate=False
rst.Update
rst.MoveNext
Wend
End Sub
Here's the code. I tried using the command "Set rst=...." and got an error
message. Then I removed the word "Set" and got "invalid use of property"...
Private Sub btnLockAll_Click()
Dim rst as new recordset
rst=Me.sfmPOLine.Form.RecordsetClone
rst.movefirst
While not rst.eof
rst!POLineAllowImportUpdate=False
rst.Update
rst.MoveNext
Wend
End Sub