Bob,
This is incomplete code but I get the idea.
What is your report based on (query/table)?
Is this code in a page header, body or what? (looks like header to me)
From the code it appears that the report is not based on tblOwnerInfo
but only looks at it. This being the case the source code of the code is
slightly different:
=Left(Dlookup("[OwnerLastName]","tblOwnerInfo","[OwnerID]=" &
[OwnerID]),3) & [OwnerID]
Regards
On my Report this is what the Name code looks like
=IIf(DLookUp("OwnerTitle","tblOwnerInfo","OwnerID=" & [tbOwnerID])=""
Or IsNull(DLookUp("OwnerTitle","tblOwnerInfo","OwnerID=" &
[tbOwnerID])),"",DLookUp("OwnerTitle","tblOwnerInfo","OwnerID=" &
[tbOwnerID]) & " ") &
Calculated Field How do I go about that . I want to be able to Print
it on the Report....Thanks Bob
Bob,
Why link?, just add a calculated field to the report. Will that do
the trick?
(make it invisible if you don't want it printed)
Regards
JK now that is is on my form how do I link that with my Report
(Statement) I have called the text box on my form
ClientRef.....Thanks Bob
BRILLIANT JK just BRILLIANT I added the text box with the source
control
=Left([OwnerLastName],3) & [OwnerID]
Just Brillant thanks for your help....Bob
Bob,
You can do it in one of the following:
1. Design (or modify the) form to be based on a query that
includes the calculated field
Or
2. In the existing form add a text box and in the Control Source
(in the Properties) to:
=Left([OwnerLastName],3) & [OwnerID]
(The equal sign is mandatory, without it you will get an error)
Regards/JK
Brilliant JK worked, so now how do I get each form to show there
individual ref so then I can assign it to there statement
..thanks Bob
I Query design view, in an *empty* column at the top row enter:
refCode: Left([OwnerLastName],3) & [OwnerID]
and run the query
You may rename the column with any other name by replacing
refCode: with any other expression but always with colon
) at
the end
Regards/JK
JK Ive created a New Query which has the 2 fields what do I do
from there..Thanks Bob
Hi Bob,
Create a calculated field in a query based on your table.
refCode: Left([OwnerLastName],3) & [OwnerID]
Regards/JK