Adding Tables
Dec 20, 2005
I have a database that tracks staff training in a health trust. It's pretty simple, tb_staff, tb_courses_done which is 1:n and a tb_courses 1:n on the staff_id of tb_courses_done.
I want to know how to go about adding a table(s) that will allow me to book staff onto courses and track if they attended or not. At present it's 1 staff member has many courses so any courses entered are "done." I have a main form with staff details and it has a subform where I add completed courses.
Hope that's clear?
Thanks.
View Replies
ADVERTISEMENT
Mar 13, 2014
I am new with Access and I am setting up a data base that will have 16 tables and each table with have over 3,000 customers. The reason for 16 tables is that we will be inputting information on a monthly basis for each of these customers (12 of the tables) and I also have 4 tables that will be perfomring different "tasks" for each customer (one is just to keep the notes we make for each customer, one will be to show any billing done, one is going to be a summary of the entire year along with some additioanl information not entered elsewhere and the final one is our customer information table).
The customer account number is the primary key for all of my tables.I want to know how I can add a new customer (either using query or form) at one time that will populate all the tables. Right now I have everything set up as tables but I can set up queries if need be.
View 14 Replies
View Related
Aug 19, 2015
I am using Access 2007 on my front-end and SQL Server 2014 on the back-end. I have a table of Car Dealers and a table of contacts at the dealerships. These tables are SQL tables. The user can select a dealer and then see everyone that works at that dealership. When they look at this there is a field called Email. This is a hyperlink that they can click on to open Outlook and send an email. The table called DealerEmails is an Access table. My table layout is:
Dbo_Dealers
------------------
ID (PK)
DealerName
DealerAddress
DealerCity
DealerState
DealerZip
DealerPhone
ModifiedBy
ModifiedDate
Dbo_DealerContact
---------------------------
ID (PK)
LastName
FirstName
Postion
DealerID (FK)
ModifiedBy
ModifiedDate
DealerEmails
-----------------
ID (PK)
DealerContactID (FK)
Email
ModifiedBy
ModifiedDate
Now I'm trying to write the code to add a new contact. My code works but I need to obtain the AutoNumber from When I add a new record to the table dbo_DealerContact. My code is:
Code:
Option Compare Database
Option Explicit
Dim adoDealerContacts As New ADODB.Recordset
Dim daoDealerEmails As DAO.Recordset
Private Sub cmdSave_Click()
[Code] ....
I tried to add Me.Dirty=False, but this still returned a value of 0 into my variable intDealerContactID.
I also tried moving intDealerContactID = .Fields("ID").Value outside of the With block.
I'm aware that there is a command in SQL @@Identity. But I'm unsure how to use it in this context.
Is there a way to get the primary key from dbo_DealerContacts so I can insert that into my Emails table?
View 2 Replies
View Related
Mar 30, 2006
Hello Guys
This might sound like an easy qestion but i just cant do it, and need someones help!
I got two Access tables that are set out exactly the same, and im trying too add the figures in both tables together, too produce the results in another table.
Can anyone help me on how too do this
Thanks
Mark
View 2 Replies
View Related
Apr 25, 2005
Hello all,
Is it possible to add logos and headers to mdb tables. This is required because the tables are to be printed out and presented. The database itself is manipulated through java swing, so I would like the table to be ready to print out when opened. Any assistance is greatly appreciated.
Zengineer
View 1 Replies
View Related
Mar 9, 2005
Hi..I have three tables A ,B and C, which have fields A,B and C respectively.
I want to do that following default calulation
A.a=B.b+C.c
meaning adding two columns of different tables and storing it in a third column.
It works for me in the forms but I want to do that in the table.
Is there any way to go about it
Regards
Rahul
View 1 Replies
View Related
Feb 14, 2006
Background info: I have created a database that consists of 22 tables that contains hundereds of electronic components seperated by type. In each table are columns for evey project so that i can determine what projects each component is used in.
Everytime there is a new project i need to add the new column to every table. Is there a way to add the column to every table in one step rather than having to do it seperately for each table? Every table set up the same, same number of columns and column titles and everything.
Thanks
View 14 Replies
View Related
Nov 2, 2006
hi all
i can do simple additions in access but i have been asked to calculate fields in different tables
all i need to do is
i have 2 tables in my database
Table 1:main_database
Table 2:Security 2_3
and i have in table 1 got 1 field called Estimated security value
and in table 2 i have 2 fields called Sec 2 estimated value and Sec 3 estimated value
all i need to do is add all of the fields together in query or field in a form
i have tried =([Estimated security value]+[Security 2 & 3]![Sec 2 estimated value])+[Security 2 & 3]![Sec 3 estimated value]
but i get '#name error
thanks in advance
chris
View 3 Replies
View Related
Aug 9, 2007
Hello -
I am new with Access and fear that this might be a very elementary question - apologies. Basically, I would like to create a few different tables that all have the same base information (like the primary key and name of the data), but different additional information. The only thing that I can't seem to figure out is how to be able to add a new entry to one table and have it show it up in the other tables. Is this possible? Thank you!
View 3 Replies
View Related
Jul 4, 2013
How do I add a sum row of the column in access 02 at the end of the column?
View 4 Replies
View Related
Dec 1, 2013
I have around a hundred tables all with exactly the same format and headings that i would like to combine into one long table, but the copy-paste append data to table function doesn't do what i had hoped. How can I join my tables together? And is there an easy way to do all 100 at once?
View 3 Replies
View Related
Oct 11, 2005
Im trying to add 2 new tables to a split and linked database... but no matter which side i add the table to (BE or FE), it wont show up in the linked table manager.. so my question is 1.) is there some trick to getting it to show up in the link manager? or 2.) is there some way to re-merge the database, add the new tables.. and then split it again?
View 3 Replies
View Related
Jun 26, 2006
Hi there,
I'm trying to add an image into a table. I know I can do it manually by creating an OLE Object and so forth. I am actually trying to get the user to enter in the path of the image and add it into the record/table.
Basically this is for a database that will hold a scanned image of a certificate associated with each person entered into the database. Anyone have any suggestions?
Thanks
View 2 Replies
View Related
Jan 30, 2008
Hi everyone,
This is in regards to user security. I'm a relatively new user to Access (and this forum). My company uses Access 2000 and I'm taking over a database thats used by several departments at my company. This database contains sensitive information so I put user security on it using the wizard. Due to the nature of the database, a particular user group needs to have the ability to create new tables. The problem is this: No matter what I do with the user group security settings, I cannot prevent other user groups from creating new tables. Is there a way to prevent certain users from adding a table?
:confused:
Your help is appreciated
View 1 Replies
View Related
Oct 24, 2005
hi, i am new to access and struggling so any help would be great...
i have a db with 3 tables. students contains a Primary Key ('studentid') and then 'firstname' and 'lastname' fields. The two other tables (contactdetails, coursedetails) have 'studentid' as a Primary Key and then they each have other fields.
I set up relationships between the tables (1 to 1) but i would now like to create a form that will allow me to enter data to all three tables at the same time. (this would be ideal as it keeps the data normalised) if this isn't possible i would like to create a form that adds the 'studentid' record to each of the tables.
let me know if you need anymore details but if someone can point me in the right direction it would be cool.
cheers
View 11 Replies
View Related
Feb 1, 2006
I have created my tables, relationships and I have gotten halfway through my forms and I have realised that I have missed out a field in a table.
How can I go back and change this without screwing everything up (I believe that would be the best terminology to discribe an error :))?
Thanks :D
View 2 Replies
View Related
Aug 12, 2007
Hi,
I am trying to figure out how to link 2 tables to add rows based on corresponding data...below is an example...
First table contains general info...
row 1: column 1 = John Doe column 2 = Sports
row 2: coulmn 2 = Bob Smith column 2 = Music
Second table contains detailed info
column 1 = Sports
row 1= Football row 2 = Baseball row 3 = Soccer
Expected Result:
I would like multiple rows to show for each person linking all of detailed info...
row 1: column 1 = John Doe Column 2 = Football
row 2: column 1 = John Doe Column 2 = Soccer
row 3: column 1 = John Doe Column 2 = Baseball
Thanks,
View 7 Replies
View Related
Oct 21, 2005
I created a form from the wizard. In the wizard, I added fields from two tables. Now, after the form is complete (and I've edited it in Design view so that it looks how I want it), I want to add another field from a third table.
Although I can add fields from the first two tables that were originally included (by clicking on the "Field List" icon and dragging fields from that list), I can't find a way to add fields from any other tables in my database. The "Field List" dialog box doesn't contain any fields from anything but the first two tables.
How to I get fields from other tables into the "Field List" dialog box?
Thanks,
Kelly
View 7 Replies
View Related
Dec 8, 2006
Hello,
I have around 10 mdbs and in each I have 4 tables, I want to add all the tables from 10 mdb to one mdb, finally I will have 4 toal tables, right now I am using a appendquery to add tables. Is there way using VBA I can do it on the form and with one click of a button I will be able to add. Thanks for any info..
View 1 Replies
View Related
Dec 20, 2012
I have a table of issues (tblIssues). Each issue has legislation that it must be dealt under. Some issues relate to more than one piece of legislation. Some legislation deals with more than issue. Ideally, therefore, I'd like to have a separate table of legislation (tblLegislation).
Where any issue refers to two (or three) pieces of legislation, can I store that in a single field? Or do I simply need to create a record in tblLegislation for the combined legislation?
View 2 Replies
View Related
Mar 20, 2014
I am building a DB for my college, it is needed to replace a spreadsheet they have in place. The spreadsheet is used to monitor and track Students grades.
Each unit a student passes gives that student a certain number of points, the number of points depends on the grade (e.g. a student will get more points for a B than they would for a C). The point of the DB is to input all the students grades so that student can see how many points they have.
I was wondering if there is a way to add a value to a field, so if I put in a field that a student got a B grade the database would know how much a B grade is worth points wise. Each field should be added together to generate an overall score. Is this possible?
View 1 Replies
View Related
Jul 17, 2014
I have some tables in many .mdb that I will like add or subtract fields. I will like to use VBA to do the job without using Access.03 interface.
I do remember using TableDefs object & the functions .Delete & .Append - That is right way to go is it not??
View 8 Replies
View Related
Jul 31, 2013
I am new to Access here, and looking to start up a database that will contain data for thousands of footballers.
I have on one table ("Directory"), all 5000+ players, with nationalities, names etc, and on another ("Flags"), I have all nations of the world and their respective flags (as an attachment).
How do I add the flag of a players nation into the "Directory" table for each record? Is there a quick way? I've tried "Lookup" but it won't let me do it for images, I've tried "Relationships" but without success.....surely I don't have to go through the "add attachment" process for all 5000 records?
View 3 Replies
View Related
Apr 30, 2015
I have two tables (1- User) , (2-Dept) have filed name D_Sum and link ID of [User] to UserID of [Dept] table
My question is how to add both of tables and get all user with filed name D_Sum form [Dept] table
in order to filter User with that have dept or not
I try to do it but I get only user with dept ,, I need all user ...
View 6 Replies
View Related
Feb 27, 2007
I have three tables setup in a 1 to 1 relationship using a Autonumber field as their primary keys. I created the seperate tables to group related data together and reduce the tables sizes in general. So think of it as one main table and two tables of extended data.
I need to be able to add a record to table 1 and have it use the same autonumber to reserve that row for data in tables 2 & 3 so that my relationships stay in sync. I want to update the data in tables 2 & 3 later when that information is available.
I have been breaking the database testing some things out like building a form from a select query using all three tables. When I add the record to table 1 nothing is added to the other two. Things get messy on subsequent attempts to add data to any of the tables.
I have avoided this problems in other tables by not using the autonumber datatype, however, I don't have a good unique key that can be manually entered and kept accurate, so autonumber solves that problem in this case.
My VB is very rusty but I'm thinking there should be a way, before update, to capture the autonumber being used for the new record and write it to the other tables. I'm thinking that would be one solution, but I can't seem to get started on that code. Any help or examples would be great.
Thanks,
Jim
View 4 Replies
View Related
Nov 12, 2007
Hi Guys,
Thanks for all your help on my last post, again have a problem to update the application, Everything works well but then I need toadd an extra table on my app. At first I thought I can add a table on my Back-End but when I open the Front-End it wont update.
Can someone out there help me how to add a table on apps. from the ground up?
Thanks in advence.
Jepoy
View 5 Replies
View Related