When my query is set to a select query it runs just fine but when I make it a make table query I get an invalid argument error. I getthe same error if I try to close the query design view window with either query configuration (make table or Select query):
Select Query SQL:
Make table query:
Can't figure out what is causing the invalid argument error... Any suggestions?
Select Query SQL:
SELECT M.BPROD AS ASM, M.BCHLD AS Item, I.IDESC AS [Desc], M.BQREQ AS Quantity, I.IUMS AS Unit, M.BBUBB AS [Bubble#], M.BDDIS AS [Effective From], M.BDEFF AS [Effective Thru]
FROM JDE1noDup LEFT JOIN (M LEFT JOIN I ON M.BCHLD = I.IPROD) ON JDE1noDup.Item = M.BPROD
WHERE (((M.BPROD)=[Forms]![DataPull_frm]![Pnum]) AND ((M.BDDIS)=99999999 Or (M.BDDIS)>=CLng(Format(Now(),"yyyymmdd"))) AND ((M.BDEFF)<=CLng(Format(Now(),"yyyymmdd"))) AND ((M.BMWHS)="01") AND ((M.BMBOMM)=" ")) OR (((I.IDESC) Not Like "*ALPHA*")) OR (((I.IDESC) Not Like "*NON-RELEASE*")) OR (((I.IDESC) Not Like "ALPHA REV FOR DOC CONTROL "))
ORDER BY M.BPROD, M.BBUBB;
SF_MBM.BPROD, M.BBUBB;
Make table query:
SELECT M.BPROD AS ASM, M.BCHLD AS Item, I.IDESC AS [Desc], M.BQREQ AS Quantity, I.IUMS AS Unit, M.BBUBB AS [Bubble#], M.BDDIS AS [Effective From], M.BDEFF AS [Effective Thru] INTO JDE_BOM_tbl
FROM JDE1noDup LEFT JOIN (M LEFT JOIN I ON M.BCHLD = I.IPROD) ON JDE1noDup.Item = M.BPROD
WHERE (((M.BPROD)=[Forms]![DataPull_frm]![Pnum]) AND ((M.BDDIS)=99999999 Or (M.BDDIS)>=CLng(Format(Now(),"yyyymmdd"))) AND ((M.BDEFF)<=CLng(Format(Now(),"yyyymmdd"))) AND ((M.BMWHS)="01") AND ((M.BMBOMM)=" ")) OR (((I.IDESC) Not Like "*ALPHA*")) OR (((I.IDESC) Not Like "*NON-RELEASE*")) OR (((I.IDESC) Not Like "ALPHA REV FOR DOC CONTROL "))
ORDER BY M.BPROD, M.BBUBB;
Can't figure out what is causing the invalid argument error... Any suggestions?