User522430173 posted
Can someone tell me how to make the following query run? I suppose I am doing something wrong with the quotes. The system will not let me use single doublequotes.
DoCmd.RunSQL "SELECT Orders.FY, getfyear([cardpurdate]) AS CardPurYr, getFmonth([cardpurdate]) AS CardMonth, Orders.CardPurDate, OrgCodes.OrgCodes, Orders.BOC, Orders.GrandTotal, Orders.Vender, MonthName(Month(CDate([CardPurDate]))) AS
thedate, DLookUp(""[Fundcode]"", ""FundCodes"", ""[OrgCodeID] ='"" & [Orgcodes] & ""'"") AS funcode INTO cc_Approved FROM Orders;", -1
regards
Milton