Connecting Tech Pros Worldwide Help | Site Map

Table update

  #1  
Old November 12th, 2005, 10:22 PM
lulupuce
Guest
 
Posts: n/a
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

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

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



Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML table Update row PHP/MySQL rukkie answers 6 January 24th, 2007 08:05 PM
question about "select * from new table (update ...)" Lennart answers 5 October 7th, 2006 10:45 AM
List Box Losing Last Line on Binded Data Table Update Bob answers 0 November 15th, 2005 10:04 PM
MULTI-Table Update Queries meyvn77@yahoo.com answers 2 July 23rd, 2005 09:26 AM
ODBC-linked table update on table ' table name ' failed. Katuil Katuil answers 0 July 20th, 2005 01:46 AM