Tables :: Relating Two Records In One Table

Sep 22, 2014

I want to relate two records in one table, a parent child relationship. I can accomplish this task with two tables I realize. I'm wanting to write a database that will map a family tree. Internal to one table I want to be able to establish a series of relationships, parent-child, sibling, et cetra. Can this be done?

View Replies


ADVERTISEMENT

Tables :: Relating Transactions With Rate Master Table

Jan 28, 2013

I am using Access 2007 and have inherited a database. It has linked tables of Excel spreadsheets that are information extracted from our main system. The user wants developing a much faster and customized approach to billing the customer based on payroll related information.

There is a table of payroll billing transactions and it has the following record lay-out,

job_num, employee number, employee name, union group, rank, regular hours, overtime hours, other hours, trans_date, seq_num

6430, 2301, john doe, 1, F, 8.0, 0.0, 0.0, 12/01/2012, 254333

On December 1st John Doe worked 8.0 regular hours as a pipefitter foreman on job number 6430 and this is record (sequence) number 254333.

There is another table that defines the union group. I am not concerned with this information at this time. The seq_num is a sequentially and uniquely assigned number given to each billing record in the main system.

There is also a Rate Master table and it has the following record layout,

job_num, union group, rank, regular_billing_rate, overtime_billing_rate, other_billing_rate

I am struggling as to how to relate these two tables so that I can develop some queries from it.

View 2 Replies View Related

Tables :: Assigning IDs To Excel Imports And Relating Tables

Mar 5, 2014

I need assigning IDs across tables so I can relate them. I have two tables.

The first table contains data regarding schools.
SchoolID [autonumber, primary key]
SchoolName
SchoolPostcode

The second table contains data regarding children numbers in each year group for each school
VaccinationSessionID [Primary Key]
SchoolID [want this to match the school id assigned in the first table!]
SchoolName
WeekofVisit
YearGroup
StartingDenominator
Etc.

In the second table the data was imported from Excel, so all but the School ID was imported. Each school name appears 7+ times in the second table.

How do I get the school ID assigned to a school name in the first table, to automatically assign and fill in the (currently blank) School ID field in the second table? I want to remove school name from the second table eventually, to use the Primary Key school ID in the first table, and Foreign Key school ID in the second table.

View 13 Replies View Related

Relating Tables

Aug 8, 2005

I have a table with the following fields: Login ID, Description Password, Login Type, Location, Status. For every Login ID there are some old passwords that had different effective dates. I want my form or table to behave so that I can enter all the old passwords with the effective dates and keep adding to this record. I know it has something to do with subforms but I don't know how to do it. Please help.
Thank you
Yusuf

View 1 Replies View Related

Relating Tables

Jul 27, 2007

I think this is probably going to be an embarrassingly simple question. I'm new to access and still struggling with the simplest of concepts...

I'm trying to relate three tables:

tblContacts
ContactID - autonumber, primary key
FirstName - text
more fields...

tblPrograms
ProgramID - autonumber, primary key
ProgramName - text
ProgramDesc - text

tblProgram_Contacts
ContactID - autonumber, primary key
ProgramID - number, primary key
ProgramName - text
Selected -true/false

I have a main form, Contacts, for the user to input all the necessary data about a contact. What I'm ultimately trying to do is also include a subform which contains the name of each program (there are 12 or so) with a true/false checkbox. I'd like it to work so that if a program is added, it automatically gets added to the subform with a checkbox.

Also, I'd like the results of that subform to get dumped into tblProgram_Contacts.


Sigh...

A great vision... but I really am not sure on how to do any of this (specifically, properly defining the relationships and properly constructing the subform). Any suggestions would be greatly appreciated!

View 3 Replies View Related

Question About Relating Tables Together

Oct 21, 2004

Hello,
I have a pretty basic question about creating relationships in Access. When in the relationship window that shows all tables and associated relationships, I am a bit confused as to whether you are to drag the parent field to the child field or vice versa. When trying both, it appears to create the 1 to many relationship in the same direction no matter what way I create the relationship. So I am hoping someone will explain this a bit further to me or at least direct me to a reasource to clear up my, and possibly others, confusion. Sorry for my ignorance on this one! :o
Thanks a lot,
Dana S.

View 4 Replies View Related

Displaying Records Relating To One Employee At A Time

May 6, 2013

I am currently creating a DB for a Customer Service team so management can keep track of who is skilled in what area, sick days, holidays etc. I have created three tables so far as follows:

EmployeeT with a primary key 'EmployeeID'

SickT with a primary key of 'SickID' and a foreign key of 'EmployeeID' linking to the EmployeeT (Reason behind this is that I may have multiple records for one Employee, meaning I would need a unique identifier)

SkillT with a primary key of 'EmployeeID' linking into the EmployeeT (Only possible to have one skill record linked to one employee)

Set up relationships as follows:

One EmployeeT to one SkillT
One EmployeeT to many SickT

I then created a blank form and used Tab Control.

On the first page I was able to populate the page with all the Employee info.
On the second page I was able to populate with all the skills relevant to the initial employee.

Then I tried populating sick records relating to the employee on a third page, but that's a no go. I was considering putting a subform on this page, but I wouldn't know where to even start with that.

View 1 Replies View Related

Tables :: Relating Tables To Each Other Using Checkboxes

Aug 14, 2014

In our organization, when employees need to ask for office supplies, they have to fill out a Supplies Request Form (SR). Then Procurement team makes a Purchase Order Form (PO) based on the SR. One PO could have one or more SRs. Then once the items have been delivered by the supplier, the Receiving team makes a Receiving Report Form (RR) based on what was delivered. One PO could have many RRs.

What I want to create is like the one in the Northwind Traders template in Access 2010. Where there is a Purchase Order and a checkbox to "Post in Inventory." When clicking the checkbox, the ordered items will automatically reflect in the inventory.

However, mine is a little bit more complicated. When there's an SR, I want to have a checkbox that will automatically reflect on a new PO. I also want a checkbox for PO that should automatically reflect on the RR. And the RR should have another checkbox linked to the inventory which should be able to update the total available stocks.

View 10 Replies View Related

Modules & VBA :: Combo Box To Show Records Relating To A Specific Record

Jun 11, 2013

I have a combox field on subform C that shows records from a query.How do I get this combo to only show records that relate to an ID on subform B.I have a subform for storing contracts and these are stored against a company name.On subform C I have a field that currently shows all records in a table. I need this combo to only show the records that relate the current record on subform B?

View 4 Replies View Related

Table Relating To Itself?

Apr 19, 2005

I have a table of guests that holds all of their details such as name; address; medical info; family background; etc. What i need to do is to hold on the database if they would like to share a room and if so, who with.

I thought it would be possible to lookup the names of guests in the same table but access tells me otherwise.

I thought about creating a linked table of my guests table but when I link person A to person B then person B is not linked to person A which I would like to be the case.

I thought about creating a table called tblShare to hold 2 names from tblGuest but im not to sure how I would make this work. I think I may have the same situation as above. If I go to person A and link them to person B would this show up on Person B? I'm not too sure.

I will try this out now. If anyone has any other suggestions or some guidence on this I would be very gratefull.

View 4 Replies View Related

Relating A Table Back To PK

Aug 2, 2006

I am fiddling with a DB right now just to try to work out some table relationships. I have a PK, Name, it is accompanied by a year in school. I then want to relate the year in school in a different table with the requirements for that year.

such as

Year Requirement1 requirement2 requirement 3

these would be check boxes (yes/no), and I could accomplish it in this format, but I am trying to have a normalized DB so
I realize it should be like this

1st year requirement
1st year requirement
1st year requirement

but I do not know how to link this back to the PK name when switching it to this format, so that I can pull up a form that shows if the person has completed the requirements for the year they are in. I am I going about this wrong? I have been looking at normalizing DBs and relationships but can't figure out the logic for my DB thought.

Thanks for any help


Riley

View 1 Replies View Related

Queries :: Return Description Value Relating To PO Table Value

Feb 10, 2014

I have 3 tables joined as attached and Im trying to use the PO from the PO_Detail table to display the Description from the Material_Req Table. The two values are linked as the description in the Material_Req Table is for the PO in the PO_Detail table but I just cant get the results to show this.

View 8 Replies View Related

Validation Rule By Relating Data With Table

Dec 18, 2013

I have tried several ways to validate my data with existing table I've developed.

Actually, I want the access to validate the data (Cellphone number) I've entered in the textbox by looking it in the existing table. So, if the data is there in the table, the message will pop up such as.. "Please continue". But if not, the message should be "this number was not registered yet.." and the textbox will be empty and ready for the new number...

View 14 Replies View Related

Tables :: Linking Records In One Table To Multiple Records In Another And Assign Percentage?

Nov 21, 2012

I have a table (tbl Team Info) which contains names and codes for teams within my business (>400 records) and another table (tbl Process) which contains a list of high level tasks (30 records).

I need to create something where for each team name 9in tbl Team Info) I can map them to the tasks that they undertake (in tbl Process) and assign a percentage of time then spend on each task. Each team could map to several different tasks.

View 3 Replies View Related

Forms :: Combo Box On Several Forms Relating To Corresponding Tables

Apr 25, 2013

I have created a database in which I have used a combo box on several forms relating to corresponding tables. These combo boxes all reference the same table with names (text fields) listed. I am having difficulties getting the data to feed into the table from the combo box using the form. Only the ID numbers appear in the table.

View 3 Replies View Related

Tables :: How To Combine Records Of Three Tables Into One Table

Jul 30, 2013

I have three tables. I want to combine all the records in these tables into one table. I need VBA code to do this. The first table is called down1, the second table is called down2 and the third table is called down3. All these tables contain the same fields so I don't think combining them will be a problem.

View 3 Replies View Related

Tables :: Importing Records Into Table?

Mar 25, 2013

I've got a problem I can don't know how to solve (since I'm a complete access noob). I've got an acces table that is populated with around 1000 entires, all starting with letter N, followed by numbers. Then I've got another table from last year which is also populated with 1000+ N entries AND 1000 V entries.

I would like to trasnfer/copy all V entires from last year table into this year table. I'm sure this is possible but I don't know how. In short, I would like to copy 1000 rows of last year data into this year table/data. What's the easiest way (if there is any)?

View 3 Replies View Related

Tables :: Updating Records Between Two Table

Jan 22, 2014

I have this table "tblPreventativeMaintenance" which calculates when the next appointment for service. Stored in the field "NextDueService". I have three fields in this table. "SerialNumber", "NextDueService" & "Engineer'sReport".The whole purpose of the table above is to do the calculations.Now the results of the calculations I need them to go into another table "tblInstallations" so I can use it to show Next Due Service when there is a call out in regards to certain ready installed equipment. I have same fields in both tables.I tried update query but for some reason it didn't work or at least wasn't giving me the results I needed from it.

View 8 Replies View Related

Tables :: Processing All Records In Table

Dec 5, 2013

I'm working on a system for recording employee information, leave details, etc. I need to run a monthly update to increment each employees leave balance.

The two tables now in question are;

Employees - relevant fields are EmployeeID (key), Active (Boolean) and Leave (Numeric) [annual leave entitlement - eg 15 days]

The second table is LeaveTrans; Emprec, LDate, LType, PrevBal, ThisLeave, NewBal, Comments.

What I need to achieve;

For each "Active" record in the employee table, detirmine the monthly leave entitlement ("Leave" /12 - no problem here).

Append a new record to the LeaveTrans table with;

Emprec, LDate (Date of the update), LType (="Monthly allocation"), PrevBal (The NewBal from the last record in the table for this employee), ThisLeave (monthly allocation) and NewBal (PrevBal + ThisLeave)

I will need to access the last record for this employee to get the previous NewBal, before appending the new record.

The problem I'm having is appending to the LeaveTrans table, and then moving on to the next record in the Employee table, to repeat the process.

View 4 Replies View Related

Tables :: How To Restrict A Table To 10 Records

Oct 14, 2013

I want to build a demo db and make it so the user cant add more than 10 records. Perhaps a popup when trying to save the 11th...

View 4 Replies View Related

Tables :: How To Count Records In A Table

Oct 21, 2013

How can i count records in a table like countif function in excel

ex.
records Count
Row 1 A 1
Row 2 A 2
Row 3 A 3
Row 4 B 1
Row 5 B 2
Row 6 A 4

View 3 Replies View Related

Tables :: Moving Records From One Table To Another

Jan 16, 2014

I have to move records from one table to another.

When we lose a client I need to take them out of my current table and put them in my dropped table.

I don't want to lose my summary info and I want the dropped client to keep it's ID Number which is an identifier.

Seems I can't just copy it from one table to another and then go back and delete it from the Current.

Seems I can't cut from Current and paste into Dropped.

In a perfect world it would be great if my boss could just check a box in Current Table and the record moved to Dropped all by itself!

View 7 Replies View Related

Tables :: Voting On Records From Another Table

May 23, 2014

What I would like to do is have about 10 users fill out an Options Group in another table (tblVote, [field Vote]) while referencing specific records in another table (tblRequests, [field ID]).

The part I can't wrap my head around, which is probably fundamental, is linking the (tblVote, [field Vote]) to (tblRequests, [field ID]). The field ID in tblRequests needs to have up to 10 separate "votes" in tblVote.

View 6 Replies View Related

Tables :: Removing Duplicate Records From One Table

Feb 18, 2014

I have a table with at least 13.000.000 records. There are many duplicates records... For example

ID Name Family mobile car number chassis Register_Year
1 Roy Jalbout 9999 123456/G ASF4546 2005
2 Roy Jalbout 9999 854658/G GRK554JFJD 2009
3 Tony Elishah 1234 854658/G GRK554JFJD 2012
4 Sam Markos 5478 854658/G GRK554JFJD 2014
5 Roy Jalbout 9999 123456/G ASF4546 2005

As you can see ID Number 2,3,4 have the same car but every one bought from another so it's not duplicates

The duplicates here is the ID's number 1,5. So how to remove the duplicates. I remember you i have at least 13.000.000 records. I try to make a query to find duplicates then i make a copy of the original table and than i should make a primary key then append the data from the original table to the copy table, but here i have more than one criteria

When I made a query to find duplicates the result was 680.000 records and every one have a minimum 2 duplicates an maximum 4 duplicates so it's about 2.500.000 duplicates records at least....

View 5 Replies View Related

Tables :: Adding Records To Existing Table

May 19, 2014

What I have is a database that I have done some tweaking on and in the meantime the original db has been in use which has added around 200 or so more records in the table.

What I would like to do is to just update the db that I have been working on with the older db table(the one who has the additional 200 records).

EX. DB A(Old DB, Newer Table) DB B(New DB, Older Table)

I want to put DB A table into DB B

Is this a simple fix? Or do I need to write some sort of query to update the records in the old table? I've tried to export the excel file and then import but it puts it in unrelated objects and then my switchboard or nothing works.

View 9 Replies View Related

Tables :: Table For Specific Records Containing Hyperlink ID

May 2, 2015

I am creating a task tracker where the user will enter a task which is working. If he is complete the task at that moment he will submit the task and everything is done for that task. However, if there is some issue or if the user need any information, then the user will enter a comment and will hit hold. My queryis once the user hits hold button, the table "Main" will capture the hold date and time. I need a second table, may be by name "Inbox" which will only show records kept on hold.

Secondly there should be hyperlink for "ID" of Hold records in table "Inbox" and when the user click on the the "ID" to resume the task, it should take the user to "Main" form and display that particular record (record which the user had clicked). Also, the date and time should be recorded when the user click on the hyperlink in Resume_Date and Resume_Time fields for that record.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved