Solved

Report Unbound field value based on another fields contents

Posted on 2002-04-04
3
201 Views
Last Modified: 2012-05-04
I am trying to actively set the value of an unbound field based upon the value of another field:

Set Me!Name = queries!qryTeamName where Me!NameID = queries!qryTeamID

I can't do this in the underlying query do to inner join violations.

Is there any way to get this done, or do you have any other suggestions?

Thanks,

tcoc
0
Comment
Question by:tcoc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 54

Accepted Solution

by:
nico5038 earned 100 total points
ID: 6919441
For this normally a DLOOKUP is used.
Syntax:
=DLOOKUP("Teamname","qryTeamname","Me!NameID="&me.teamid)

This assumes that the field teamid is (hidden?) on the report.

Nic;o)
0
 

Author Comment

by:tcoc
ID: 6919481
Nic,

You da Man!  I forgot to try that - duh!

TeamId is hidden in the report.

Working syntax = DLookUp("Name","qryTeam","TPM=teamid")

Thanks for quick response too!

tcoc

0
 
LVL 54

Expert Comment

by:nico5038
ID: 6919498
You're welcome, the quick response is just luck as I'm now off to bed ;-)

C U

Nic;o)
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question