473,407 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

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
Nov 12 '05 #1
2 1482
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.*******@kent.ac.uk> wrote in message
news:c5**********@athena.ukc.ac.uk...
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

Nov 12 '05 #2
> I think you'll find it easier to work in forms than directly in the
tables.

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

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Mike Leahy | last post by:
Hello all, This question is related to updating tables - is there any way to calculate or update the values in a column in a table to the values in a field produced by a query result? An...
6
by: Jeff Kowalczyk | last post by:
I need to adapt this an update statement to a general form that will iterate over multiple orderids for a given customerinvoiceid. My first concern is a form that will work for a given orderid,...
5
by: PAUL | last post by:
Hello, I have 2 tables with a relationship set up in the dataset with vb ..net. I add a new record to the parent table then edit an existing child record to have the new parent ID. However when I...
7
by: Serge Rielau | last post by:
Hi all, Following Ian's passionate postings on problems with ALTOBJ and the alter table wizard in the control center I'll try to explain how to use ALTOBJ with this thread. I'm not going to get...
1
by: adithi | last post by:
My Table Structure is: Table A Table B Table C colA -PK Col B-PK Col C-PK Col B-FK ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.