|
以下是引用rjacky在2007-3-22 12:32:00的发言:
懒得上传附件,楼主自行切换到查询的SQL设计视图粘贴
SELECT [Main Tb].[ID#], [Main Tb].Name, DLast("[Sub Tb_Status].[Status]","[Sub Tb_Status]","[Sub Tb_Status].[Main_ID]=" & [ID#]) AS LastStatus
FROM [Main Tb];
多谢了! 可我试了以后,系统说DLast("[Sub Tb_Status].[Status]","[Sub Tb_Status]","[Sub Tb_Status].[Main_ID]=" & [ID#]) AS LastStatus FROM [Main Tb];
这部分里有错误.
in query expression <expression>. (Error 3075)
The expression you typed is not valid for the reason indicated in the message. Make sure you have typed field names and punctuation correctly, and then try the operation again.
麻烦你再给看看。我对VB 和SQL语法基本不懂。现在正一点点学呢。
LastStatus: DLast("[Sub Tb_Status].[Status]","[Sub Tb_Status]","[Sub Tb_Status].[Main_ID]=" & [ID#]) 这个部分有问题,无法生成 |
|