Solved

Report Unbound field value based on another fields contents

Posted on 2002-04-04
3
183 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
  • 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

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.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

773 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