Posting to two DB tables from one form
Hi, I am trying to create a small forum for a site, and I am trying to allow users to post up to five images per posting. What I am trying to do is have the text of the forum (the initial thread and replies) post to one table, and then have the images post to another table. My reason for doing it in two tables is because I want to utilise the images elsewhere. in the site away from the forum.
I have in the past posted to two tables from one form, but I didn't need to two tables to relate to each other once entered into the database.
What I need to know now is how to post to two tables and ensure that any images posted to the image table are related to the ID that is created when posting to the threads and replies table. Basically, when I insert a new thread/reply, a new ID is created in the table, and any images inserted need to take on that new ID so I can pull them into the correct thread/reply... but how?
I think it has something to do with the value in the general tab of DataAssist's Insert Record interface, but I'm not entirely sure if this is correct, and even if I am, what do I put there?
Is DataAssist able to use two tables when creating the insert now? In the past I seem to remember having to run DA twice, or run it once, then run DW's built in insert!
Thanks