Trying to create a format rule for one table ...

Trying to create a format rule for one table based on info from another.

I tried the following but the format is being applied to all records not just the ones that have a blank check in date:

ISNOTBLANK(dbo.tblEvacuationRecord[CheckedInDate])

What am I missing?

0 6 322
6 REPLIES 6

So, this table that youโ€™re trying to apply the formatting toโ€ฆ Does it have a column in it that references this evacuation record? If so, it would need to be something like thisโ€ฆ ISNOTBLANK([ref_column_name].[CheckedInDate])

Two tables:

Registration and Evacuation.

The evacuation table has the ref field back to Registration.

Iโ€™m trying to put the format rule on the reg table.

With your expression how does it know to check the evac table?

@Grant_Stead just FYI CheckedInDate isnโ€™t a column in the reg table.

but RegID is in both

@Tammi_Canelli itโ€™s a standard derefference. You point to the column that references the other table, then โ€œ.โ€ Look at the desired columnโ€ฆ

Since youโ€™re on a roll this morning.

Iโ€™m still having trouble with this.

Since my reference is in the evac table back to registration and itโ€™s the registration table Iโ€™m trying to format based on a field in the evac table (that isnโ€™t in the reg table), so I need to add a ref in reg to evac?

@Tammi_Canelli I wouldnโ€™t add more columns than you need. You can run a lookup to the evac tableโ€ฆ

ISNOTBLANK( LOOKUP([reg_key_column], evactable, evactable column, CheckedInDate) )

this only works if there is only one evac record per reg.

Top Labels in this Space