I've created some complex Access applications, but I'm mostly self-taught. I'm pretty sure that means I have surprising and disturbing holes in my education; I'm probably doing some things the hard way just because I never realized there's a better. This time around I want to ask first, so I can cure some of my ignorance.
I'm creating a bookkeeping app. To start a new journal entry I envision a form where I enter a date and description in the header, and in the detail section as many debits and credits as necessary. I figure the easiest way to do the detail section is to feed it an empty table; that way I can easily start new records (new debits and credits) just by typing into the new-record fields. Then, once the journal entry is built, I can push the button and have it poured into the journal and ledger tables.
I can, during the design phase, create EmptyTable in the database and have the form use that. But I want to be able to instantiate the form, so I can have more than one open at a time, and I don't want multiple instances of the form to be all using the same temporary table. So what's the best way to do this? I can certainly have VBA create a new table with a random name ("EmptyTable1037") at run time, and delete it afterward. But maybe it's better to use a recordset? Or is there another way?
Feel free to criticize from some other angle; if you're really itching to ask "but why do you want to do it that way in the first place, when you can...?" then by all means charge in.