G
Guest
Hi,
I'm still quite new to Access. I've built a query to pull course details
from the database. Unfortunately it seems to be causing problems and a part
of it is crashing access giving no errors.
I've identified that the following is the problem, but I can't see why. Can
you suggest any improvements to stop this happening?
This checks 2 fields and depending on the content assigns a duration, which
may or may not contain one of those fields.
Duration: IIf([Full Course Details]![Weeks_in_Qual]=1,([Full Course
Details]![Hours_per_Week] & " Hours"),IIf([Full Course
Details]![Weeks_in_Qual]=36,"1 Year",IIf([Full Course
Details]![No_of_Years]=2,"2 Years",IIf([Full Course
Details]![Hours_per_Week]=0,"TBC",IIf([Full Course Details]![No_of_Years]=1 &
[Full Course Details]![Weeks_in_Qual]<36,([Full Course
Details]![Weeks_in_Qual] & " Weeks"),IIf([Full Course
Details]![Hours_per_Week]=0,"TBC","Check"))))))
I'm still quite new to Access. I've built a query to pull course details
from the database. Unfortunately it seems to be causing problems and a part
of it is crashing access giving no errors.
I've identified that the following is the problem, but I can't see why. Can
you suggest any improvements to stop this happening?
This checks 2 fields and depending on the content assigns a duration, which
may or may not contain one of those fields.
Duration: IIf([Full Course Details]![Weeks_in_Qual]=1,([Full Course
Details]![Hours_per_Week] & " Hours"),IIf([Full Course
Details]![Weeks_in_Qual]=36,"1 Year",IIf([Full Course
Details]![No_of_Years]=2,"2 Years",IIf([Full Course
Details]![Hours_per_Week]=0,"TBC",IIf([Full Course Details]![No_of_Years]=1 &
[Full Course Details]![Weeks_in_Qual]<36,([Full Course
Details]![Weeks_in_Qual] & " Weeks"),IIf([Full Course
Details]![Hours_per_Week]=0,"TBC","Check"))))))