Match and Index in Access

  • Thread starter Thread starter kittyfool via AccessMonster.com
  • Start date Start date
K

kittyfool via AccessMonster.com

Hi Gurus,

Is there any function like Excel's match and index?

I have a table as follow

(1 2 3 4 5)
1) 1 2 3 4 5
2) 7 8 9 1011

If i match row 2 with col 3 it will return me 9. How can i do this in access?

Thanks for your help.
 
kittyfool said:
Is there any function like Excel's match and index?

I have a table as follow

(1 2 3 4 5)
1) 1 2 3 4 5
2) 7 8 9 1011

If i match row 2 with col 3 it will return me 9. How can i do this in access?


It sounds like your mindset is stuck in spreadsheet mode
;-)

That kind of question is inappropriate in a database system
where data needs to be structured into tables and records
that meet the normalization rules of relational databases.
Note that I am speaking in terms that apply to all
relational database systems, not just Access. If you have
no idea what I'm talking about, you need to do some homework
to understand these fundamental concepts.

The database answer to your question is to use a query that
joins the tables and uses criteria to "match" the indexes.
 
hi marshall barton,

i dont quite get you. Can u please elaborate further on how i can use a query
that
joins the tables and uses criteria to "match" the indexes? Can you related it to my example?
Thanks

Your help is very much appreciated.

Marshall said:
Is there any function like Excel's match and index?
[quoted text clipped - 5 lines]
If i match row 2 with col 3 it will return me 9. How can i do this in access?

It sounds like your mindset is stuck in spreadsheet mode
;-)

That kind of question is inappropriate in a database system
where data needs to be structured into tables and records
that meet the normalization rules of relational databases.
Note that I am speaking in terms that apply to all
relational database systems, not just Access. If you have
no idea what I'm talking about, you need to do some homework
to understand these fundamental concepts.

The database answer to your question is to use a query that
joins the tables and uses criteria to "match" the indexes.
 
Sorry, there is no answer to that question until after you
have created the tables that contain the data. Then you
will have to explain what tables and fields are involved
with whatever it is you are trying to accomplish.

You can start your homework assignment here ;-)
http://support.microsoft.com/kb/283878/en-us
--
Marsh
MVP [MS Access]

hi marshall barton,

i dont quite get you. Can u please elaborate further on how i can use a query
that
joins the tables and uses criteria to "match" the indexes? Can you related it to my example?
Thanks

Your help is very much appreciated.

Marshall said:
Is there any function like Excel's match and index?
[quoted text clipped - 5 lines]
If i match row 2 with col 3 it will return me 9. How can i do this in access?

It sounds like your mindset is stuck in spreadsheet mode
;-)

That kind of question is inappropriate in a database system
where data needs to be structured into tables and records
that meet the normalization rules of relational databases.
Note that I am speaking in terms that apply to all
relational database systems, not just Access. If you have
no idea what I'm talking about, you need to do some homework
to understand these fundamental concepts.

The database answer to your question is to use a query that
joins the tables and uses criteria to "match" the indexes.
 
(1 2 3 4 5)
1) 1 2 3 4 5
2) 7 8 9 10 11

If i match row 2 with col 3 it will return me 9. How can i do this in
access?

select Field3
from MyTable
where Field1 = 7


(there is no concept of a row number in databases, so for the sake of the
exercise I assumed your primary key is in the first field)


Hope that helps


Tim F
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top