Inserting values from one table to another

K

Krypton

Hi, I am a little stuck with a form I am designing.

I have a main form which pulls some contact details from two tables
tblAccount and tblContact which are linked by accountID. I then have a
subform which displays a list list of questions from tblQuestion. I have
another subform which needs to put answers into tblAnswer and for each new
record I needs to insert a questionID and accountID.

What I can't work out is how to insert the account id from the current
account record and the question id from the current question record. If i
was doing this with asp or something i would use an insert statement and put
the values in from a select on the account table. access doesnt seem to
work like this however.

anyone got any ideas ?

cheers
Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top