S
souvenir
Hi
I guess I've reached the limit of my abilities with this... I've a
form with a SQL statement which includes a dummy column I'd like to
set in the "On Open" event of the form.
Imagine the select is:
SELECT Company.CompanyName, Company.Status, ' ' AS AlreadyRun, FROM
Company
I want to programmatically change the AlreadyRun column for each row
in the Recordset. I don't need to save the column to a table or
anything - it's used to show users something.
I've been trying, in the Form's On Open event:
Private Sub Form_Open(Cancel As Integer)
Dim RAset As DAO.Recordset
Set RAset = Me.Recordset
Do Until RAset.EOF
With RAset
.Edit
!AlreadyRun = "whatever i want"
.Update
.Bookmark = .LastModified
End With
RAset.MoveNext
Loop
Set RAset = Nothing
End Sub
Thanks in advance.
I guess I've reached the limit of my abilities with this... I've a
form with a SQL statement which includes a dummy column I'd like to
set in the "On Open" event of the form.
Imagine the select is:
SELECT Company.CompanyName, Company.Status, ' ' AS AlreadyRun, FROM
Company
I want to programmatically change the AlreadyRun column for each row
in the Recordset. I don't need to save the column to a table or
anything - it's used to show users something.
I've been trying, in the Form's On Open event:
Private Sub Form_Open(Cancel As Integer)
Dim RAset As DAO.Recordset
Set RAset = Me.Recordset
Do Until RAset.EOF
With RAset
.Edit
!AlreadyRun = "whatever i want"
.Update
.Bookmark = .LastModified
End With
RAset.MoveNext
Loop
Set RAset = Nothing
End Sub
Thanks in advance.