H
How do you clear a report of data after
What I would like to do is create a archive table but instead of archiving
all of the table I would like to archive just the record I 'am viewing in the
form view via a command button reason being the record on view has tasks to
compelete and when completed I would like to archive that record.
I had a response but I' am not sure how to go about it it was as follows,
Add a field to your table design called something like CompleteFlag.
Set its default to False.
In your form, in the Before Update event, add some VBA in an Event
Procedure that checks for completeness and sets that flag to True.
Something like (air code):
If Me.MyCheckbox1 = True And Me.MyCheckbox2 = True then
' this record is complete
Me.CompleteFlag = True
End If
Then, change any queries or reports that you would like to ignore the
Completed records. You would add a Where clause, like this:
"Select * from MyTable Where CompleteFlag = False"
This query will return only those records that are not yet "complete".
Is there a way to do it via SQL I know a little about this subject
Regards
George
all of the table I would like to archive just the record I 'am viewing in the
form view via a command button reason being the record on view has tasks to
compelete and when completed I would like to archive that record.
I had a response but I' am not sure how to go about it it was as follows,
Add a field to your table design called something like CompleteFlag.
Set its default to False.
In your form, in the Before Update event, add some VBA in an Event
Procedure that checks for completeness and sets that flag to True.
Something like (air code):
If Me.MyCheckbox1 = True And Me.MyCheckbox2 = True then
' this record is complete
Me.CompleteFlag = True
End If
Then, change any queries or reports that you would like to ignore the
Completed records. You would add a Where clause, like this:
"Select * from MyTable Where CompleteFlag = False"
This query will return only those records that are not yet "complete".
Is there a way to do it via SQL I know a little about this subject
Regards
George