访问 2010
这很好用:
SELECT aa.recid,
aa.account_clid,
bb.code AS type,
aa.number,
aa.company,
aa.product,
aa.status
FROM ( [account] AS aa
RIGHT JOIN [account_types] AS bb ON aa.[type] = bb.[account_code] )
而这,令人发指的是,抛出臭名昭著的“不支持 JOIN 表达式”味精
SELECT aa.recid,
aa.account_clid,
bb.code AS type,
aa.number,
aa.company,
aa.product,
aa.status,
cc.code AS stattus
FROM ( [account] AS aa
RIGHT JOIN [account_types] AS bb ON aa.[type] = bb.[account_code] )
RIGHT JOIN [account_codes] AS cc ON aa.[status2] = cc.[account_code]
有人会告诉我我(或 Access)做错了什么吗?
TIA,
仍在学习的史蒂夫