Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Report Unbound field value based on another fields contents

Posted on 2002-04-04
3
Medium Priority
?
217 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 400 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Suggested Courses

916 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