Passing a number to retrive the name in a table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Im trying to figure out how to retrieve the name from a team member table if
i pass it the id number.


~TeamMember~
TeamMemberID as number
Name as text
 
Retrieve where?

In a query, join the two tables together on TeamMemberID.

In VBA, you can use DLookup("[Name]", "[TeamMember]", "[TeamMemberID] = " &
IdNumber)

Note that Name isn't a very good choice for a field name: it's a reserved
word.
 
thanks

Douglas J. Steele said:
Retrieve where?

In a query, join the two tables together on TeamMemberID.

In VBA, you can use DLookup("[Name]", "[TeamMember]", "[TeamMemberID] = " &
IdNumber)

Note that Name isn't a very good choice for a field name: it's a reserved
word.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


tanhus said:
Im trying to figure out how to retrieve the name from a team member table
if
i pass it the id number.


~TeamMember~
TeamMemberID as number
Name as text
 

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