ItHurtsWhenIThink
Technical User
I can't seem to be able to evaluate an alias.
I get the following error:
ERROR: Invalid column name 'HydroDue'.
Error Code: 207
I want to be able to get recordset of all bottle that have past their hydro date. I take the hydro date (last hydro) and then add the interval 'HydroInterval' and add it to the 'HydroDate'. Lastly I want to get a list of those that have a HydrDue date less than the current date. But I get the error. What gives? Thanks...
Select
DateAdd(yyyy, SCBABottles.HydroInterval, Max(SCBAHydro.HydroDate)) As HydroDue,
SCBABottles.SerialNumber,
SCBABottles.Manufacture,
SCBABottles.FDBAID,
SCBABottles.HydroInterval,
From SCBABottles Inner Join
SCBAHydro On SCBABottles.BottleID = SCBAHydro.BottleID
Where HydroDue< '12/10/2013'
Group By
SCBABottles.SerialNumber,
SCBABottles.Manufacture,
SCBABottles.FDBAID,
SCBABottles.HydroInterval
I get the following error:
ERROR: Invalid column name 'HydroDue'.
Error Code: 207
I want to be able to get recordset of all bottle that have past their hydro date. I take the hydro date (last hydro) and then add the interval 'HydroInterval' and add it to the 'HydroDate'. Lastly I want to get a list of those that have a HydrDue date less than the current date. But I get the error. What gives? Thanks...
Select
DateAdd(yyyy, SCBABottles.HydroInterval, Max(SCBAHydro.HydroDate)) As HydroDue,
SCBABottles.SerialNumber,
SCBABottles.Manufacture,
SCBABottles.FDBAID,
SCBABottles.HydroInterval,
From SCBABottles Inner Join
SCBAHydro On SCBABottles.BottleID = SCBAHydro.BottleID
Where HydroDue< '12/10/2013'
Group By
SCBABottles.SerialNumber,
SCBABottles.Manufacture,
SCBABottles.FDBAID,
SCBABottles.HydroInterval