ashleedawg
"Here for a good time"
- Local time
- Yesterday, 20:24
- Joined
- Jun 22, 2017
- Messages
- 154
I've was playing around with drawing a dynamic grid of rectangles on a form, possibly to eventually turn into something custom-progress-bar-like, and so in testing I've been drawing & deleting them repeatedly.
But I'm confused about the behavior of my DeleteAllRectangles sub. It only wants to delete every second one. I'm probably (rather, very likely) missing something obvious. It's so unimportant as it's only for testing, but it's gonna bug me!
(It's a sandbox thus far so it's not very tidy, but pretty self-explanatory.)
But I'm confused about the behavior of my DeleteAllRectangles sub. It only wants to delete every second one. I'm probably (rather, very likely) missing something obvious. It's so unimportant as it's only for testing, but it's gonna bug me!
- The attached Access 2016 db will open a startup form.
- Click 1 to open a second form (intentionally in Design View).
- Click 2 to draw a bunch of rectangles.
- Click 3 to delete the rectangles. Click 3 again. And again. And again.
- Click 4 to see the offending procedure (and likely find my mistake in under 10 seconds!)
(It's a sandbox thus far so it's not very tidy, but pretty self-explanatory.)