此SQL查詢由Microsoft Access 2003生成,運行正常,但嘗試從宏運行時失敗。查詢中是否有任何明顯的錯誤,或者它不起作用的原因?導致錯誤的sql查詢2950
SELECT tblAuction.article_no, tblAuction.article_name, tblAuction.subtitle, tblAuction.current_bid, tblAuction.start_price, tblAuction.bid_count, tblAuction.quant_total, tblAuction.quant_sold, tblAuction.start, tblAuction.ends, tblAuction.origin_end, tblUser.user_name, tblAuction.best_bidder_id, tblAuction.finished, tblAuction.watch, tblAuction.buyitnow_price, tblAuction.pic_url, tblAuction.private_auction, tblAuction.auction_type, tblAuction.insert_date, tblAuction.update_date, tblAuction.cat_1_id, tblAuction.cat_2_id, tblAuction.article_desc, tblAuction.countrycode, tblAuction.location, tblAuction.condition, tblAuction.revised, tblAuction.paypal_accept, tblAuction.pre_terminated, tblAuction.shipping_to, tblAuction.fee_insertion, tblAuction.fee_final, tblAuction.fee_listing, tblAuction.pic_xxl, tblAuction.pic_diashow, tblAuction.pic_count, tblAuction.item_site_id
FROM tblUser INNER JOIN tblAuction ON tblUser.id = tblAuction.seller_id;
你以前的聲明怎麼樣:如果我將它改爲只是tblAction而不是查詢,我得到這個錯誤:800a0005':無效的過程調用或參數 – Fionnuala 2008-11-27 13:29:35
另外VBScript通常不被稱爲宏,如果你的意思是繼續http://stackoverflow.com/questions/314245/vbscript-to-export-an-access-query-to-a-tab-delimited-file-not-working – Fionnuala 2008-11-27 13:31:51
不,這是一個單獨的問題,與vbscript無關。如果我嘗試從Access中運行Access中的TransferText宏,它將失敗,但查詢會運行。 vbscript失敗的原因是因爲這個查詢......這就是問題的縮小範圍。 – 2008-11-27 13:45:29