Problem with forms

D

Daniel

HI everyone,

I have a simple database with two tables, one a primary
table with customer demographics, the rest with visits.
They are linked one to many on cust ID. I have two forms,
one based demographics table and one based on vists,
linked on cutid.

Heres's the problem:

When I go on to the second table, I have put the custid
in myself, it does not come over automatically. Thats not
so much the problem, but then I have to come out of that
form and then out of the form linked to the primary
table, then open the forms again inorder to view the
info. If I just go out of the secon form then back in the
inofrmation I put there is not there, but it is on the
tables.

Hope someone can help....struggling with this!

Cheers
 
J

Jeff Boyce

Daniel

A standard approach to handling one-to-many in forms is main form/subform.
The main form holds the "one" side, the subform holds all the related
"many".

The two are linked by the parent and child fields -- in your case, it sounds
like the customerID is your primary key in customer demographics. It would
need to be a foreign key in the visits table.

If you set up such a main form/subform, Access will automatically enter the
customerID into any subform records you enter.
 

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

Similar Threads

Subforms in table/datasheet format 1
subforms in table 8
Sub Forms 7
Embeded Forms 11
Design issue - how to handle document objects 1
Linked Table Clarification 3
Subforms 8
Verifying table structure... 8

Top