Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    Join Date
    Apr 2017
    Posts
    1,679
    You can get done with classes table faster, when you use an append query.

    Btw. don't use field names with spaces in them, i.e. instead "Class Number" use "CalssNumber" or "Class_Number".

    Create a temporary table with a single field Class, p.e. tblTempClasses: Class, and fill it with all classes for one semester and course.
    Create a saved query p.e. qClearTempClasses: DELETE FROM tblTempClasses
    Create a saved query (I created the example for semester with ID=7 and course with ID=1) p.e. qAppendClasses:
    INSERT INTO tblYourTableName (ClassNumber, SmsID, CrsID)
    SELECT Class, 7, 1


    FROM tblTempClasses

    NB! Never include autonumber into INSERT query!

    Run the queryqAppendClasses - the classes from temporary table are added into your table. If you created the unique composite index for fields ClassNumber, SmsID and CrsID, the query works when no new entry is copy of some previous, otherwise it returns an error (If you don't have such index, there will be a risk that you enter the batch of classes several times, unless you add a WHERE clause to check for double entries into append query). When the query was successful, run the query qClearTempClasses - the temporary table will be empty for next batch of classes. Repeat the cycle until the table is filled

  2. #17
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725

  3. #18
    sarek007 is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Oct 2017
    Posts
    8

    Example of database

    Attached is a made up version of the Excel spreadsheet I'm try to convert into Access. This format is as it was when I got it, since then I have split the cells so they each contain one attribute, ie, lastname, firstname. I've also split the courses and classes into separate cells.
    Thanks anyone for any help, you guys have been great already, it's me being slow!
    Attached Thumbnails Attached Thumbnails DB.jpg  

  4. #19
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,725
    Can you post the excel sheet, not a graphic.

    As discussed, I have attached a demo db in zip format.

    It is not intended as an application. It was a personal database to review table data macros.
    Attached Files Attached Files

  5. #20
    Join Date
    Apr 2017
    Posts
    1,679
    Even with only graphic presented, there arouse some questions and guessings.

    Questions:
    1. What is Student ID? Some ID given to student in your Excel table, or some official ID read from some document and entered into your table?;
    2. What is Site? A place the student origins from, or a place he/she studies?;
    3. What is Active Duty? Is it attached to student, to class, or to some other field? Is it fixed value from start of studies until to end of them, or will it change over time?;
    4. What is VA Chapter? Same questions as in p.4;
    5. What is VA Grad? Same questions as in p.4;
    6. Courses can be Major or UCC? Is this distinction made by course, or by course taken by student?

    Guesses:
    1. Credit Hours are hours the student can participate in classes he/she is registered into? Can the student take additional hours later?;
    2. Charges is amount in $ the student must pay for Credit Hrs? Is there some price ($/hrs) determined? (overall/per course/ at year/etc.);
    3. Amount Certified and Date of Cert are data for some operation/decision made with charges?;
    4. Hrs Verified is a date when is registered, that the student did participate in class(es) for all registered hours? What about the case, the student could'nt participate for all hours? Are hours verified for class, course, semester or year?;
    5. Logged by is probably some official entering some data? For charges, or for payments, or for what?

    (Almost) sure (when field in table structure is between brackets, it's optional):
    1. You'll have a table tblStudents: StdID (autobumber, needed in case you dont use StudentID as PK), StudentID, ForeName, LastName, SiteID (in case the Site is attached to student);
    2. You'll have a table tblSites: SiteID, Site;
    3. You'll have a table tblSemesters, SmsID, YearNo, Period ('Fall', 'Winter', 'Spring') ;
    4. Youll have a table tblCourses: CourseID, SmsID, (YearNo,) (Period), CourseNo, SiteID (in case the Site is attached to course), (CourseType - Major or UCC in case the type is determined for course), (CourseInfo), ...;
    5. You'll have table tblClasses: ClsID, CourseID, (YearNo,) (Period), (CourseNo), ClassNo, (ClassInfo), ...;
    6. You'll have a table tblStudentClasses: StdClsID, StdID, ClsID, (CourseType - Major or UCC in case the type is determined for class), ...
    7. You'll have table tblStudentCharges: StdChrID, StsClsID, (StdID), (ClsID), (CourseID), (YearNo,) (Period), (CourseNo), CreditHrs, HrsVerified (?);
    8. You'll have some table where real payments from student are registered.
    Last edited by ArviLaanemets; 10-21-2017 at 12:00 PM.

  6. #21
    sarek007 is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Oct 2017
    Posts
    8
    Sorry Orange, I don't know how to just send the sheet with fake data?

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Design and Primary Key Help Needed
    By greek49 in forum Database Design
    Replies: 2
    Last Post: 05-28-2013, 06:22 PM
  2. database design help needed
    By princeofdumph in forum Database Design
    Replies: 2
    Last Post: 01-03-2013, 08:20 AM
  3. design/programming help needed
    By apryls82 in forum Database Design
    Replies: 1
    Last Post: 12-27-2012, 10:09 AM
  4. Help with table design needed.
    By bobojones69 in forum Database Design
    Replies: 0
    Last Post: 08-10-2010, 02:08 PM
  5. Help needed with table design/layout for newbie
    By jase118 in forum Database Design
    Replies: 8
    Last Post: 06-05-2010, 02:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums