首先,我使用SQLSever数据库作为后端,但现在我用MS Access替换它。但是我在这个查询中遇到错误。我该如何解决这个错误?
查询是:
SELECT id,Status FROM table WHERE (Name1 = '') AND (Name2 = '') Order By CASE IsNumeric(id) WHEN 1 THEN Replicate('0', 100 - Len(id)) + Fid ELSE id END
我用IIF更改查询
SELECT id,Status FROM table WHERE(Name1 ='')AND(Name2 ='')ORDER BY IIF(IsNumeric(id),Replicate('0',100 - Len(id))+ id,id)
但它的错误来自复制功能