01: Multiple Form Instances 1
Open Multiple Instances of a Form
New Form_CustomerF
Creating Collections
Adding Objects to a Collection
Using collections in VBA
Form object declaration
Setting forms visible in VBA
Setting form RecordSource dynamically
Using collections to manage forms
Initializing and setting collections
Handling object variables in VBA
Global collections in VBA
Public variables for form instances
02: Multiple Form Instances 2
List Open Forms
Make Sure Collection is Initialized
Dealing with Closed Forms
Tracking Forms with a Key Value
Handling closed forms
Tracking forms with key values
Counting forms in the collection
Generating a list of open forms
Using For Each loop
Using counter loop
Error handling in form collection
Form load event for collection check
Creating a custom key for forms
Storing form key with tag property
Setting form key with unbound textbox
Tracking forms with their order
03: Multiple Form Instances 3
Don't Open Same Record Twice
Give a Specific Form Focus
Cascade the Forms when Opened
Preventing duplicate form instances
Checking if a customer form is already open
Handling form errors with on error resume next
Using For Each loop to iterate open forms
Setting form focus on already open forms
Exiting subroutine upon condition
Using error handling for form operations
Modifying collection handling in global scope
Positioning forms with form.move method
Cascade positioning of open forms
Creating a "close all" button to clear collections
Handling collections and memory optimization
04: Multiple Form Instances 4
Kill the Collection if All Forms Closed
Tips from GPT
Resetting collections when all forms are closed
Looping through collection forms to check status
Using counter-based loops for form checking
Handling errors when accessing form properties
Cleaning up collections to free memory
Creating new collection instances
Checking for open forms using form properties
Using Boolean flags to track open forms
Implementing form error handling and recovery
Conditional collection reset logic based on form status