title: feb 110:50 am (1 of...
Post on 31-Jul-2020
3 Views
Preview:
TRANSCRIPT
When doing anew databaseclick here.
To open an existing fileselect from the list orclcik on Open Other Filesand find it.
Title: Feb 110:50 AM (1 of 41)
Be sure to give the database a name and tell where it is stored.
Title: Feb 111:05 AM (2 of 41)
I am calling the databaseSecondDB.accdb and I amstoring it on the root of theE drive.Note the extension is .accdb
Title: Feb 111:06 AM (3 of 41)
I want to use a different way of entering data so I click onthe tools icon and save the table. Then the prefered wayof entering data comes up.
Title: Feb 111:07 AM (4 of 41)
Title: Feb 111:08 AM (5 of 41)
Now I am laying out the structure of the table.The first field is stuid that is short text and thefield size I established as 5.This field also has the primary key next to itwhich means that every record will need tohave a unique stuid. If you try to enter a stuidthat already exists you will get an error.
Title: Feb 111:10 AM (6 of 41)
The second field is stuname which is alsoshort text and the field size is set at 50.
Title: Feb 111:10 AM (7 of 41)
Now I am adding major. It is also short text with field size 2.
Title: Feb 111:11 AM (8 of 41)
The gpa is a numeric field. The field size is setat single for a small decimal number.
Title: Feb 111:12 AM (9 of 41)
The numCredits field is also numeric and it has Integer as the field size.
Title: Feb 111:12 AM (10 of 41)
I entered a variety of data.
Title: Feb 111:17 AM (11 of 41)
I closed the table. Then I clicked on Create followed by Query Wizard toset up a query. A query is something I can set up to extract a list ofinformation that meets the criteria I establish.
Title: Feb 111:21 AM (12 of 41)
I select the stu table and clickon Add at the bottom of the screen.
Title: Feb 111:21 AM (13 of 41)
I bring down the fields the I want to showin the output from the query.
I accidently clicked on something tobring up this sheet ignore it!
Title: Feb 111:22 AM (14 of 41)
Title: Feb 111:22 AM (15 of 41)
I brought down all the fields except gpa.
Title: Feb 111:23 AM (16 of 41)
Title: Feb 111:24 AM (17 of 41)
I am putting CI in quotes on the criteria under the majorfield. That means that the only records display will be oneswith a CI in the major field.
Title: Feb 111:27 AM (18 of 41)
I am saving the query.
Title: Feb 111:29 AM (19 of 41)
Now I am adding > 3 under the gpa so I am asking to displayall records that havae a CI in major and >3 in gpa.Note that these two things are in an AND relationship.
Title: Feb 111:31 AM (20 of 41)
Title: Feb 111:32 AM (21 of 41)
Logic flowchart for two things inan AND relationship.Diamond for decisions and parallelogram for input or output.
Title: Feb 111:35 AM (22 of 41)
Now I have moved the >3 from the criteria lineto the OR line. I now have major has to be CI OR gpa has to be > 3. This is an ORrelationship.
Title: Feb 111:37 AM (23 of 41)
The one record without CI inthe major has a gap > 3 so it isdisplayed.
Title: Feb 111:38 AM (24 of 41)
Title: Feb 111:41 AM (25 of 41)
Now I have three things in an OR relationship.The line below the or line can also be used asan OR line. I have >15 under numCredits.So I have major of CI or gpa > 3 or numCredits > 15.
Title: Feb 111:43 AM (26 of 41)
Title: Feb 111:44 AM (27 of 41)
If the > 15 was on the same line as the > 3then we have CI or both gpa > 3 and numCredits > 15
Title: Feb 111:45 AM (28 of 41)
Title: Feb 111:45 AM (29 of 41)
Title: Feb 111:46 AM (30 of 41)
This shows CI or gpa > 3 ornumCredits > 15
Title: Feb 111:48 AM (31 of 41)
The flowchart forCI OR both gpa > 2 andnumCredits > 15
Title: Feb 111:51 AM (32 of 41)
Now I want the major of CI and in additioneither the gpa is > 3 OR numCredits > 25.
Title: Feb 111:54 AM (33 of 41)
To make this work the CI is on both thecriteria line and the OR line so this readsmajor CI and gpa > 3 ORmajor CI and numCredits > 25
So CI is true in both which is a requirement.
Title: Feb 112:00 PM (34 of 41)
Title: Feb 112:02 PM (35 of 41)
CI is true which it has to beand then either gpa is > 3 OR numCredits > 25
Title: Feb 112:04 PM (36 of 41)
Now try this
Title: Feb 112:10 PM (37 of 41)
Title: Feb 112:10 PM (38 of 41)
Title: Feb 112:11 PM (39 of 41)
Title: Feb 112:11 PM (40 of 41)
Title: Feb 112:14 PM (41 of 41)
top related