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

Very little Access experience -- Need to keep newest or last line of information whil

1
I have very little Access experience, but I know this can be done.. just not how.

My table has 14 columns
-ID, Company Name, Agency ID, Last Name, First Name, Middle Initial, Field 8, Optional 1, Optional 2, Date Submitted, coursed, Course Status, Last Accessed

ID, Company Name, Agency ID, Last Name, First Name, Middle Initial, Field 8, Optional 1, Optional 2, and Date Submitted stay the same for a particular set (???). For example:

ID - 1
Company Name - Smallville
Company ID - 111
Agency ID - 00000012345
Last Name - Washington
First Name - George
Middle Initial - (none)
Field 8 - wash1234
Optional 1 - (none)
Optional 2 - (none)
Date Submitted - 30-Apr-2013
courseid - Course
Course Status - Completed
Last Accessed - 28-Jul-08

The differences are in courseid, Course Status, and Last Accessed are generally different.

George Washington has 7 lines of data, while Ronald Reagan has 2 lines of data and Lincoln could have 5. I am working with a total of about 2000 names with each have multiple entries. I need to sort my data to keep the newest Last Accessed date field for each person.

If it helps, the newest Last Accessed date is always the last line of the persons information. So if records 1-6 are George Washington then record six is his most recent, if Ronald Reagan is records 7-9 then record 9 is his most recent, and if Lincoln is records 10-14 then 14 is his most recent.

Any help is greatly appreciated and with my limited knowledge I'll probably need pretty detailed help.

Blessings, Jenna
Mar 18 '16 #1
1 1158
PhilOfWalton
1,430 Expert 1GB
Well to start you off, I would suggest 2 tables, the first Table Companies to hold the fixed data, so that's everything down to DateSubmitted. While were on the subject, avoid spaces in field names because if Access comes across Company Name it will assume that Company is the field name, and won't have the foggiest idea what to do with the next word -"Name". If you insist on spaces you will always have to put square brackets round the field name thus [Company Name]
Alternatives are Company_Name or my preference is CompanyName. Don't forget the tables should never be seen, and the label on the form can say whatever you like.
Sorry to go on but give all fields a meaningful name. Field 8 looks as if it a Zip Code, if so, call it ZipCode. Equally not very happy about Optional 1 and 2. Equally ID should be CustomerID
Enough.
Second table "Courses" should have
CustomerID, CourseID, CourseStatus and LastAccessed.
You the end up with a main form for the Customers, with a Subform showing the course information.
You will end up with 1 table holding your 2000 customers with CustomerID (as an AutoNumber) running roughly from 1 to 2000 and the Courses Table with the total number of courses. You will need to set up a relationship between the 2 tables on CustomerID.
Depending precisely what information you want, there are lots of queries that can be generated from this data.

Phil
Mar 18 '16 #2

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

Similar topics

3
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
15
by: Ridimz | last post by:
When use ifstream, how do I ignore the last line of a file if it doesn't contain any information? Thanks in advance, Ridimz
35
by: RyanS09 | last post by:
Hello- I am trying to write a snippet which will open a text file with an integer on each line. I would like to read the last integer in the file. I am currently using: file = fopen("f.txt",...
7
by: DemonWasp | last post by:
I've been having some trouble getting the Scanner class to operate the way I'd like. I'm doing some fairly basic file IO and I can't seem to get the class to load the last line/token any way I try....
6
by: magix | last post by:
Hi, when I read entries in file i.e text file, how can I determine the first line and the last line ? I know the first line of entry can be filtered using counter, but how about the last line...
1
by: chixor1 | last post by:
I am writing an order number to a txt file. Each new order takes the order number form the txt file, and apprends by 1 to create the new order number. However I cant seem to find how to read the...
8
by: elias.farah | last post by:
Hello Everyone, I'm having some very weird behavior on a couple of Access forms. (Not all forms, just some of them). The forms have been working for years, under Access XP/2003 etc, and last...
8
by: Adam Sandler | last post by:
Hello, I'm trying to input a txt file. Each line in the text file contains a discrete code or value -- so I want to populate the an arraylist with each line. I've noticed a problem. The code...
2
by: badbane | last post by:
I am using a form to update information in my database. I have three tables. The database references which dvd's user profiles are backed up on. Since some backups go across multiple disks I have...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.