Document Information
Document Type: TechNote
Product(s): ConstructSim V8i
Version(s):
- ConstructSim V8i SS2 (08.11.08.55)
Original Author: Marc Brana, Bentley Technical Support Group
Solution:
Clicking Test import in "Configure XLS Data Input Sources" in CSST.MDB gives Compile Error Sub or Function Not Define
When using Configure XLS Data Input Sources in CSST.MDB you will get the following error when clicking Test import for selected XLS input table:
"Compile Error Sub or Function Not Define"
The workaround is add the folliowing function in CSST.MDB to the bottom of mod_CSSTDB_Utils:
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'
' Test if
Query exists in Query collection
'
Function
QueryExists(strQueryName As String) As Boolean
'Returns
True if Query exists
Dim dbs
As Database
Dim i As
Integer
Set dbs =
CurrentDb()
QueryExists
= False
dbs.QueryDefs.Refresh
For i = 0
To dbs.QueryDefs.Count - 1
If
strQueryName = dbs.QueryDefs(i).Name Then
'Query
Exists
QueryExists
= True
Exit For
End If
Next i
Set dbs =
Nothing
End
Function
See Also
[[SELECTsupport TechNotes and FAQs]]
External Links
Bentley Technical Support KnowledgeBase
Comments or Corrections?
Bentley's Technical Support Group requests that you please submit any comments you have on this Wiki article to the "Comments" area below. THANK YOU!