Alexos
Starting Member
1 Post |
Posted - 2010-04-15 : 14:50:56
|
I am attempting to write a sql statement to query 4 foxpro free tables in access. i am able to select all the fields and inter join the tables without any problems, but when i run the statement it doesn’t return any results; only the column titles show up, none of the data is returned.here is what i have so far:SELECT acpinv.recnum, acpinv.invnum, acpinv.pchord, acpinv.ctcnum, acpinv.vndnum, acpinv.jobnum, acpinv.phsnum, acpinv.dscrpt, acpinv.invdte, acpinv.duedte, acpinv.refnum, acpinv.dscdte, acpinv.invtyp, acpinv.status, acpinv.payee2, acpinv.usrdf1, acpinv.usrdf2, acpinv.dscavl, acpinv.retain, acpinv.setpay, acpinv.amtpad, acpinv.dsctkn, acpinv.invttl, acpinv.adjust, acpinv.freigh, acpinv.ttlpad, acpinv.invbal, acpinv.invnet, acpinv.actper, acpinv.entdte, acpinv.lgrrec, acpinv.usrnme, acpinv.btcnum, acpinv.hotlst, acpinv.shpnum, acpinv.cmpamt, acpinv.usetax, acpinv.ntetxtFROM ((acpinv INNER JOIN actpay ON acpinv.recnum = actpay.recnum) INNER JOIN actrec ON acpinv.recnum = actrec.recnum) INNER JOIN jobphs ON acpinv.recnum = jobphs.recnum;I also addedWHERE acpinv.recnum = NOT NULL;to the end to see if that would give me a different result. it didn't.i am not a sql expert... obviously... so i appreciate any help you can give. |
|