I have the following IIF statement working in SQL.
ModFlag: IIF(DatePart("ww",[DateModified])=DatePart("ww", Date())-1,IIF(DatePart("ww",[DateModified])=DatePart("ww",Date())-1,-1,0))
I want to make it a VBA procedure so I can call it, by passing a Date to the Function, but I'm missing...