wobei man die Formel auch in Script darstellen kann...
Sub Click(Source As Button)
Dim dummy As Variant
dummy = DbColumn ( "" , "NoCache" , "Servername" , "DevIdea.nsf" , "Alpha" , 2 )
NumOfDocsInView% = Ubound ( dummy ) + 1
Msgbox NumOfDocsInView%
End Sub
Function DBColumn(strClass As String, strNoCache As String, strServer As String, strDatabase As String, strView As String, numCol As Integer) As Variant
quotes = Chr(34)
strFormula = "@Left(@Trim( @DbColumn(" & quotes & strClass & quotes & ":" & quotes & strNoCache & quotes & ";" & quotes & strServer & quotes & ":" & quotes & strDatabase & quotes & ";" & quotes & strView & quotes & ";" & numCol & "));1)"
DbColumn = Evaluate( strFormula )
End Function