Hey kwokv616,
Well, I can tell from what you're describing to me, you've been working in Excel for a great deal of time. Now that being said, I need to explain a few concepts to you that greatly differ from using Excel.
1. With excel you have a static list that is always kept in the order that it appears in the excel spreadsheet. With MS Access, this is a list of item that is kept in a format that is fluid at all time. there is not set order because there are records that are being added and removed, and it will find a place for new records that replaces old records that have been deleted as time go one.
So that prevents you from refering to an item in a table as being in a set order. because it can all be changed simply by sorting the table in a different manner.
2. One thing that is required when developing tables from MS Access is a Unique ID field that is part of the table structure. Like in Excel, you have a row number for each item in the list, In MS Access there is unique ID that will Identify each record in the table uniquely. This way if you need to get to a specific record, you're simply would have to give it the record Unique ID, and it will locate that record.
I know these concepts are different, but you'll have to understand them and many others before you can being to manipulate any data within tables.
Another concept to understand is Indexing.
And example of Indexing is: Lets say you have a last name list of:
Anderson
Zebo
Franklin
If they were indexed, they would be sorted as
Anderson
Franklin
Zebo
This way if you're searching for something by last name, you would be able to find that record right away because the index would exactly what record(s) that last name would be in.
Now to simply answer your question, you're going to need to define within the table what "fac" is and how that relates to the value that you're wanting to look at in column 5.
Take for example you have a table with the following fields in them.
-
ID FirstName LastName PhoneNumber
-
1 Fred Flinstone 123-456-7890
-
2 Barney Rubble 123-456-7891
-
If you want to be able to search for lastname Rubble, you would create a query, that would have the following information
-
Select FirstName, LastName,PhoneNumber FROM TableName WHERE LastName = 'Rubble'
-
So this is how you would search for specific information within tables.
If you create a query, you can specify what fields you want, from what table, and the condition that you want the records returned in?
If you have any more details questions, please feel free to ask, I would be more than happy to help.
Joe P.