scal1 is a pivot table. I'm assuming that's where the problem is coming from.
SELECT scal1.IBLITM, scal.IBSRP4, scal1.IBMCU, scal1.IMDSC1, scal1.SSTOCK, scal1.IBSTKT, scal1.MFDRQJ, static_calendar.[calendar_month/year], scal1.UCOST, scal3.ICLEAD, IIf(IsNull([AD]),0,[AD]) AS demand, IIf(IsNull([CF]),0,[CF]) AS forecast, ([demand]-[forecast]) AS var, Abs([demand]-[forecast]) AS abs_var, IIf((scal1!IBSTKT='S' Or scal1!IBSTKT='M'),28,[ICLEAD]) AS ltime, Round(Sqr([LTIME]),1) AS sqr_ltime
FROM (scal1 LEFT JOIN scal3 ON scal1.IBLITM = scal3.ICPROD) LEFT JOIN static_calendar ON scal1.MFDRQJ = static_calendar.julian_date
WHERE (((static_calendar.[calendar_month/year])=[Forms]![scal]![scalvalue]));