N
Nunnsby
Hi There
Simple answer required for newbie, if that is possible when dealing
with code!
I have a mailing list with a form, bound to a table: tbl_mailingList. I
need to record the numbers of records we delete.
I have created a new table, tbl_deletedRecords, with only a number
field: deleted_records. No primary required, I don't think.
I have a button on the form to delete records. All I need to do is
increment the deleted_records field when the button is clicked. That is
all. Nothing fancy.
I think I know what needs to be done, and I thought something along the
lines of the code below would help, but I am struggling with the
language, as I realise it is wrong, and I can't figure it out.
'**I AM a Newbie don't forget.
dim countDeleted as Integer
countDeleted = 0
countDeleted = tbl_deletedRecords.deleted_records.value
tbl_deletedRecords.deleted_records.value = countDeleted + 1
'**
I realise this is seriously wrong, but the logic is right to me, so if
anyone can point it out to me. The biggest issue I have is the syntax
of referencing the value, of field in the table, as it is unbound.
I also know there is the DMax field, but can't seem to get the syntax
right in that either, and not too sure if that is right either.
As for the records, before anyone asks, once they are gone, they can
stay gone, as we won't need the historical data from them. I just want
to count the numbers we are losing over the period of a year.
Any help?
Thanks greatly
Richard
Simple answer required for newbie, if that is possible when dealing
with code!
I have a mailing list with a form, bound to a table: tbl_mailingList. I
need to record the numbers of records we delete.
I have created a new table, tbl_deletedRecords, with only a number
field: deleted_records. No primary required, I don't think.
I have a button on the form to delete records. All I need to do is
increment the deleted_records field when the button is clicked. That is
all. Nothing fancy.
I think I know what needs to be done, and I thought something along the
lines of the code below would help, but I am struggling with the
language, as I realise it is wrong, and I can't figure it out.
'**I AM a Newbie don't forget.
dim countDeleted as Integer
countDeleted = 0
countDeleted = tbl_deletedRecords.deleted_records.value
tbl_deletedRecords.deleted_records.value = countDeleted + 1
'**
I realise this is seriously wrong, but the logic is right to me, so if
anyone can point it out to me. The biggest issue I have is the syntax
of referencing the value, of field in the table, as it is unbound.
I also know there is the DMax field, but can't seem to get the syntax
right in that either, and not too sure if that is right either.
As for the records, before anyone asks, once they are gone, they can
stay gone, as we won't need the historical data from them. I just want
to count the numbers we are losing over the period of a year.
Any help?
Thanks greatly
Richard