English 中文(简体)
2. 调整价值而不是计算发展指数
原标题:Getting the value not the ID

我有一个表象调查员,其中包括一个调查现场,显示名单。

补助金可能有1名以上调查员。

我的项目要求把所有调查员列入赠款细节旁边的单一牢房,这样,即:

Grant A | Name A, Name B, Name C etc.

我有一个VBA模块,将调查员召集到以下1个小组:

  Concat Returns lists of items which are within a grouped field
 Public Function c(strID As String, strAddMe As String) As String
     Static prevID As String
     Static strFinal As String
     Static strLastAdded As String

If (strID = prevID And strAddMe <> strLastAdded) Then
          strFinal = strFinal & ", " & strAddMe
Else
          prevID = strID
          strLastAdded = strAddMe
          strFinal = strAddMe
End If
     c = strFinal

 End Function

还有一个称为“SQL”的出入问题:

SELECT g.grant_id, Max(c(g.grant_id,tblInvestigators.investigator)) AS Expr1
FROM tblGrants AS g LEFT JOIN tblInvestigators ON g.grant_id = tblInvestigators.grant_id
WHERE (((g.grant_id)=6))
GROUP BY g.grant_id;

在我进行这项工作时,它回到了一张 com子分离的清单,但它是一栏(蓝色调查者、调查者)的识别号清单。 我怎么能找到名字?

Chris

最佳回答

使用眼光田从来不是一个好的想法:。 http://www.mvps.org/access/lookupfields.htm

它歪曲了取得你想要的结果的标准方法,即利用一个 que子将发展指数列入研究表,并恢复描述。

查阅 MS接入(2003年)与储存程序相类似。 我愿对MS acceess进行复杂的询问。

问题回答

暂无回答




相关问题
Handling no results for docmd.applyfilter

I have an Access app where I use search functionality. I have a TextBox and a Search Button on the form, and it does a wildcard search of whatever the user enters in the TextBox, and displays the ...

access query to filter and combine count

i have two access tables tableA num count 1 7 2 8 3 9 4 9 5 13 6 6 tableB num count 0 1 1 14 2 12 3 5 4 5 5 11 6 5 how can i create an access query that ...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can t figure out how tho show the dialog ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

Returning row number on MS Access

I have 4 tables, from which i select data with help of joins in select query...I want a serial no.(row number) per record as they are fetched. first fetched record should be 1, next 2 and so on... In ...

热门标签