Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLookup based on criteria in label

Status
Not open for further replies.

richgar4par

Technical User
Jun 25, 2012
2
US
What I'm trying to accomplish is to have a label in my form return information "on click" based on the criteria of the label. For example, if my label reads "Computer-1", after I click on it I would like it to return the information associated with 'Computer-1'.

I don't know code very well, but I know enough to where I can copy and paste it in VB.
 
I suppose you could use DLookup() to retrieve the information, but you really need to give more exact information on what's going on here!
[ul]
[li]Where is the information for "Computer-1" stored?[/li]
[li]Why do you need to use the 'criteria,' which in reality is the Label's Caption?[/li]
[li]How many of these Labels are we talking about?[/li]
[/ul]

The Missinglinq

Richmond, Virginia

The Devil's in the Details!
 
It's a floor map I'm making with several hundred seats. Each label is a cubical with a pc and phone. The labels caption is the cubical number. My database table has the cubical number, and other information like phone extension and department. If I click on the cubical number I would like it to display the information associated with it like the phone extension/department.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top