Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 12th, 2005, 10:22 PM
lulupuce
Guest
 
Posts: n/a
Default Table update

Hi!
I have a problem with a small app.
I have a membership table and a payment table, they work ok together but
when I create a new member I want the app to create a new record in the
payments as well otherwise I cannot enter payments.
I have never done anything like this and wondered if someone could help.
Lucy


  #2  
Old November 12th, 2005, 10:22 PM
MacDermott
Guest
 
Posts: n/a
Default Re: Table update

Hello, Lucy!

I think you'll find it easier to work in forms than directly in the tables.
First, define a one-to-many relationship from your membership table to your
payment table.
Enforce referential integrity with cascade updates.
(If any of these terms is unclear to you, try the Access Help file, or
post back here.)
Now you can create a form from your membership table, with a subform from
your payment table.
Whenever you add a record to the subform, it will automatically pick up the
appropriate ID from the membership table.

HTH
- Turtle

"lulupuce" <L.Druesne@kent.ac.uk> wrote in message
news:c5o604$11j$1@athena.ukc.ac.uk...[color=blue]
> Hi!
> I have a problem with a small app.
> I have a membership table and a payment table, they work ok together but
> when I create a new member I want the app to create a new record in the
> payments as well otherwise I cannot enter payments.
> I have never done anything like this and wondered if someone could help.
> Lucy
>
>[/color]


  #3  
Old November 12th, 2005, 10:22 PM
lulupuce
Guest
 
Posts: n/a
Default Re: Table update

> I think you'll find it easier to work in forms than directly in the
tables.[color=blue][color=green]
>>[/color][/color]
Thanks,
I am working in a form, the problem is that the subform doesn't for the
moment pick up the new record, but I haven't done the referential integrity
and that will probably do the trick.
Lucy



 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles