Craig is working in a database that stores homes for sale for a Realtor. The database contains a table called HomeListings which contains a field called ListingDate that holds the date that a home was listed. Craig is designing a query that will identify houses on the market for less than 30 days as new listings, and houses on the market 30 days or more as old listings. This information will be

included in a query column called ListingAge. Which of the following expressions will achieve these results?

A) ListingAge: IIf(Date-[ListingDate]![HomeListings]<30,"New Listing","Old Listing")
B) ListingAge: IIf(Date-[HomeListings]![ListingDate]>30,"New Listing","Old Listing")
C) ListingAge: IIf(Date-[HomeListings]![ListingDate]<30,"New Listing","Old Listing")
D) ListingAge: IIf(Date-[HomeListings]![ListingDate] < 30, "Old Listing","New Listing")

C

Computer Science & Information Technology

You might also like to view...

Text criteria in a query is not case sensitive

Indicate whether the statement is true or false

Computer Science & Information Technology

The Form Wizard includes a section on laying out your form. Please describe the four types of form layouts.

What will be an ideal response?

Computer Science & Information Technology