Papa_Bear1
Member
- Local time
- Today, 16:52
- Joined
- Feb 28, 2020
- Messages
- 101
Typically, when I need Autonumber, I'll create a template table to reset it, since it will inherently increment forever and I don't want to even consider how long that would take to become a problem. Ha.
This has worked without issue for a long time. Today, however, I've run into a situation where I am on a form that has the data table underlying it (a subform actually). So, ignoring the "DELETE * FROM ..." option since that doesn't get that Autonumber reset, I want to delete the underlying data table altogether and then re-display everything. I simply CANNOT get Access to let go of the table.
I've tried:
> Changing the subform's record source to vbNullString (and to "") first - and then closing the form, but no joy.
> Moving the code that deletes the table to an entirely separate form (the calling form), but still no joy. (I really thought this would HAVE to work. Yikes...)
Is it really not possible to delete a table even after the form is closed?? I really don't know what could possibly have its hooks into it. There is literally nothing else open and nothing else uses that table anyway. I'm going to place a button on the calling form to clear that table - but that is quite ugly to me - as it makes more sense to the user to clear the data they're looking - IMHO. We'll see if that works, but who knows... Ha.
Ideas?
This has worked without issue for a long time. Today, however, I've run into a situation where I am on a form that has the data table underlying it (a subform actually). So, ignoring the "DELETE * FROM ..." option since that doesn't get that Autonumber reset, I want to delete the underlying data table altogether and then re-display everything. I simply CANNOT get Access to let go of the table.
I've tried:
> Changing the subform's record source to vbNullString (and to "") first - and then closing the form, but no joy.
> Moving the code that deletes the table to an entirely separate form (the calling form), but still no joy. (I really thought this would HAVE to work. Yikes...)
Is it really not possible to delete a table even after the form is closed?? I really don't know what could possibly have its hooks into it. There is literally nothing else open and nothing else uses that table anyway. I'm going to place a button on the calling form to clear that table - but that is quite ugly to me - as it makes more sense to the user to clear the data they're looking - IMHO. We'll see if that works, but who knows... Ha.
Ideas?