Quantcast
Channel: SYNCHRO Construction Solution
Viewing all articles
Browse latest Browse all 6333

Wiki Page: Compile Error Sub or Function Not Defined

$
0
0

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

Bentley LEARN Server

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!


Viewing all articles
Browse latest Browse all 6333


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>