473,387 Members | 1,501 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,387 software developers and data experts.

Adding Multiple Records Via A Form

Hi, i am making a database to track the training courses that employees have to attend for my brothers company.

There is one main table involved in what i am trying to do it is called trainingAttendenceT and has two fields sessionID and staffID. I want to be able to select the training session i want the employees to attend once, and then simply assign the employees to this via a form.

At the moment i have a form which contains a sub form. The main form contains a combo box listing all the available sessions, the sub form contains a combo box listing all employees. This form is set to continuous forms view so that when a value is selected a new combo box appears allowing me to select another employee to attend the training session selected in the main form. When i then add the data to the table, it adds all the employees but does not assign them a session, it gives it the value 0 for all employees except one of them.

Hopefully I made sense, and i hope that what i want to do is possible

Many thanks in advance!
Feb 7 '07 #1
3 2334
MSeda
159 Expert 100+
The value selected on the parent form won't automatically enter to new records created on a subform, you'll have to use some code somewhere to enter it.

either in the subform's after insert event or on the employee combobox's on dirty event try
Me.SessionID = Me.Parent.Form!SessionID
of course change the names to match your controls

hope this helps,
Megan
Feb 8 '07 #2
Thanks for the reply megan, ill give that a try when i get home, its very frustrating as i have almost go it working, hopefully your suggestion works.
Feb 8 '07 #3
NeoPa
32,556 Expert Mod 16PB
Hopefully, but if not just come back and we'll have another look for you.
Let us know how you get on :)
Feb 9 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jamie Fryatt | last post by:
Hi everyone, here's what id like to do. I have a table with 2 fields, name and value I need to be able to add multiple records quickly, for example I need to add name value abc 1...
1
by: mellie | last post by:
Hi there, SQL 2000 database with ASP I've found many things "out there" regarding updating and deleting multiple records with checkboxes but I can't seem to find anything about adding them. ...
7
by: Drew | last post by:
I have a db table like the following, UID, int auto-increment RegNo Person Relation YearsKnown Now here is some sample data from this table,
6
by: Robin S. | last post by:
**Eric and Salad - thank you both for the polite kick in the butt. I hope I've done a better job of explaining myself below. I am trying to produce a form to add products to a table (new...
6
by: 6thirty | last post by:
Hi, I've created a stocktaking database using Access XP. This is indexed by two fields - part number and shelf location. I am currently inputting all the data via a form. When I have entered a...
8
by: JumpinJeff | last post by:
I have a form that is open with one record in the recordset. I need to add a record to that recordset, then requery the form. Ultimately, the user will --from a list on another form-- one-by-one,...
12
by: shank | last post by:
I'm trying to use online samples for submitting multiple records from ASP into a stored procedure. Failing! Through the below form, a user could be submitting many records at a time. I'm not...
8
by: shumaker | last post by:
I'm wondering if adding an autonumber primary key will improve the performance of a multiuser access database on a network share. I have a website that lists many tips for improving performance of...
9
by: Kadett | last post by:
Hi all, I have following problem: I'm creating a ListView (Details) control at run-time and filling it with some records (let's say 10 000). This operation seems to be quite fast, but when I call...
7
by: =?Utf-8?B?TG9zdEluTUQ=?= | last post by:
Hi All :) I'm converting VB6 using True DBGrid Pro 8.0 to VB2005 using DataGridView. True DBGrid has a MultipleLines property that controls whether individual records span multiple lines. Is...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.