B
Bob Wickham
Hi,
I have a Private sub activated by the OnClick event of a forms command
button.
The code within this sub adds records to a table.
I have borrowed some Function code from Allen Browne MVP that deletes
all records from a table and resets the AutoNumber field to "1".
They work perfectly as separate entities.
I now wish to combine the 2 by calling the Function that deletes the
records at the beginning of the sub that will add the records.
Can someone please explain the correct way to, firstly,
declare and then call the function from the sub.
Thankyou,
Bob
I have a Private sub activated by the OnClick event of a forms command
button.
The code within this sub adds records to a table.
I have borrowed some Function code from Allen Browne MVP that deletes
all records from a table and resets the AutoNumber field to "1".
They work perfectly as separate entities.
I now wish to combine the 2 by calling the Function that deletes the
records at the beginning of the sub that will add the records.
Can someone please explain the correct way to, firstly,
declare and then call the function from the sub.
Thankyou,
Bob