We help IT Professionals succeed at work.
Get Started

Create a new record in one table that includes data from another table in Access 2007

mstoolmi
mstoolmi asked
on
331 Views
Last Modified: 2012-04-29
I have a client table that is linked to a number of other tables that contain survey instruments.  On the client record form, I have buttons that connects to each survey and create a new record.  When the survey record is created, I would like the client_id field to be populated by same id from the client table record where the button was clicked.  I thought that the best way to handle it was to create a temporary variable and set it equal to the id in the client table, then create the new record in the survey table, and set the client_id field to the temporary variable.  

How do you set the client_id to the temporary variable?  Or is there another way to set the client_id field to the right id?
Comment
Watch Question
CERTIFIED EXPERT
Top Expert 2009
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE