J
JezLisle
Hi,
I am trying to workout a way that I can run a query that will search a number
of columns and bring me the latest date back for that id number
example
AddressID Appt1 Appt2 Appt3 Appt4 Appt5
101 07/04/2008 14/04/2008 22/04/2008 01/05/2008
102 06/04/2008 13/04/2008 21/04/2008 23/04/2008 08/05/2008
So what I am trying to understand is in my query I want to add another column
thats say MaxAppt and that would look accross the fileds and pick out the
latest Appt dates... (in this case would be 01/05/2008 & 08/05/2008)
How can this be done?
Someone mentioned using and iif statement, but didnt explain it properly so
am usure about it.
iif(isnull(<mycolumn>,"",right$(<mycolumn>,10))
I tried this and keeps coming up with expression error
iif(isnull(<Appt1>,"",right$(<Appt1>,10))
Thanks
I am trying to workout a way that I can run a query that will search a number
of columns and bring me the latest date back for that id number
example
AddressID Appt1 Appt2 Appt3 Appt4 Appt5
101 07/04/2008 14/04/2008 22/04/2008 01/05/2008
102 06/04/2008 13/04/2008 21/04/2008 23/04/2008 08/05/2008
So what I am trying to understand is in my query I want to add another column
thats say MaxAppt and that would look accross the fileds and pick out the
latest Appt dates... (in this case would be 01/05/2008 & 08/05/2008)
How can this be done?
Someone mentioned using and iif statement, but didnt explain it properly so
am usure about it.
iif(isnull(<mycolumn>,"",right$(<mycolumn>,10))
I tried this and keeps coming up with expression error
iif(isnull(<Appt1>,"",right$(<Appt1>,10))
Thanks