K
Karen
Hi All,
I have several subroutines that build various tables
The subroutines have very similar names:
Sub CreateVersionInfoTable(strDBPath As String, strNewTableName As String)
Sub CreateExpensesTable(strDBPath As String, strNewTableName As String)
Sub CreateExpensesLookupTable(strDBPath As String, strNewTableName As
String)
In another form's code I want to loop through the names of tables and ensure
that the tables exist. If they do exist then I want to build the missing
table. When a table is missing (let's pretend it's the 'VersionInfo' table
then I want to
Call CreateVersionInfoTable(strDBPath As String, strNewTableName As String)
For every table that may be missing the syntax would be:
Call Create & 'MissingTable' & Table(strDBPath As String, strNewTableName As
String)
I built a string(strTableCreate) that is equal to
"CreateVersionInfoTable(strDBPath As String, strNewTableName As String)"
and then I had
Call strTableCreate and I get a Compile error 'Expected Sub, Function, or
Property'
How do I build Call arguments dynamically? OR is there some other
suggestion for this?
I have several subroutines that build various tables
The subroutines have very similar names:
Sub CreateVersionInfoTable(strDBPath As String, strNewTableName As String)
Sub CreateExpensesTable(strDBPath As String, strNewTableName As String)
Sub CreateExpensesLookupTable(strDBPath As String, strNewTableName As
String)
In another form's code I want to loop through the names of tables and ensure
that the tables exist. If they do exist then I want to build the missing
table. When a table is missing (let's pretend it's the 'VersionInfo' table
then I want to
Call CreateVersionInfoTable(strDBPath As String, strNewTableName As String)
For every table that may be missing the syntax would be:
Call Create & 'MissingTable' & Table(strDBPath As String, strNewTableName As
String)
I built a string(strTableCreate) that is equal to
"CreateVersionInfoTable(strDBPath As String, strNewTableName As String)"
and then I had
Call strTableCreate and I get a Compile error 'Expected Sub, Function, or
Property'
How do I build Call arguments dynamically? OR is there some other
suggestion for this?