PC Review


Reply
Thread Tools Rate Thread

Appending a table from a form

 
 
New Member
Join Date: Feb 2006
Posts: 2
 
      19th Feb 2006
Hi can anyone help,
I've been bashing my head against this problem for days.
I am making a Courses Db. I have three tables Clients: [ClientID],[FirstName], SecondName] [Etc..] CourseRegistration: [RegID], [ClientID] [RegDate] and Courses: [CourseID], [RegID] [CourseName] [AvailablePlaces]. I have created a Form that contains fields from all three tables and enables a client to register for a particular course. They select the course they want via a combo box which then lists the details of the type and course dates on the form. This all works fine when you press 'AddRecord'

There is also a field called "AvailablePlaces" from the courses table on the Form.
What I would like to do is when the user hits AddRecord, the new Registration record is added and the AvailablePlaces field in the Courses table is decremented by 1. I've tried writing an Append query that is run when the OnClick is run for the AddRecord button but it asks me for a parameter value. I don't want to type in the parameter value I want it to take the value from the form. I am trying to get it to compare the CourseID on the Form with the CourseID in the table and if they are equal then reduce the AvailablePlace field by one. Any help would be very welcome.

Last edited by Tacitus; 20th Feb 2006 at 07:37 PM..
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Appending from form to table =?Utf-8?B?U3R1IEtlbm5lZHk=?= Microsoft Access Form Coding 0 9th May 2007 02:45 PM
Appending a table from a form a.t.brooks@talk21.com Microsoft Access Forms 3 23rd Oct 2006 04:25 PM
appending table from form =?Utf-8?B?QXJub2xkIEtsYXBoZWNr?= Microsoft Access VBA Modules 10 16th Aug 2006 07:50 PM
Appending Data from Form to Table =?Utf-8?B?VGFt?= Microsoft Access Forms 5 13th Feb 2005 11:20 PM
Appending Data from a Form to a Table T Liden Microsoft Access Form Coding 3 11th Aug 2003 09:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:01 PM.