Calling segments

I need an MS Access formula for this:

If a segment number = 00000000 then segment description
else
Department description.

segment number is a txt field

Thanks
KdankwahAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
pteranodon72Connect With a Mentor Commented:
In a query?
Description: Iif([segment number] = '00000000', [segment description], [Department Description])

as a control source on a form:
=Iif([segment number] = '00000000', [segment description], [Department Description])

HTH,
pT72
0
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
IIF([segment number]="00000000", [segment description], [Department description]) as NewColumnName
0
 
KdankwahAuthor Commented:
Thanks for timely response.  What if the segment is a sub department of the department and I want to run reports department reports seperate from the segment reports.  I dont know if I should open another ticket for this.

Thanks
0
All Courses

From novice to tech pro — start learning today.