Yes/No Format where Table Data Shows '1' or '2'

tkepongo

Registered User.
Local time
Today, 12:38
Joined
Jul 15, 2011
Messages
45
Hi there,

A linked table is showing a field with either a '1' or a '2' for Yes/No. In my report, I set the format to Yes/No. When I run the report, all the records displays a 'Yes' regardless if the data is a '1' or a '2'. Does anyone have a quick solution to properly format it to display a Yeswhen it is '1' or a No when it is '2'?
 
Yeah, subtract 2 from the value of the field. In VBA True = -1 and False = 0.
Cheers,
 
Yeah, subtract 2 from the value of the field. In VBA True = -1 and False = 0.
Cheers,

So how do I subtract 2 from the field? Subtract it in the table or by some kind of Event Procedure?
 
Edit the ControlSource property of the display control to something like ...
Code:
=[YourYesNoFieldName] - 2
...or you can amend the query on which the report is based to do that math so one of the columns in the query design grid looks like...
Code:
FieldName: TableName.FieldName - 2
Does that make sense?
Mark
 

Users who are viewing this thread

Back
Top Bottom