asked on
dim sql_text
sql_text = ""
dim counter
counter = 0
for each tbl in mdl.tables
for each fld in tbl.columns
if ( fld.stereotype <> "" ) then
counter = counter + 1
sql_text = sql_text + "insert into database.fieldNames(id,name,tablename,datatype)"
sql_text = sql_text + "values (" + counter + "," + fld.Name + "," + tbl.Name + "," + fld.DataType + ")" + vbCrLf
END IF
next
next
ASKER
runtime error
type mismatch : '[string: "insert into database.fie"]" (0x800A000D)
ASKER
cstr(counter)
ASKER
Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.
TRUSTED BY
Normal syntax is database_name.table_name, assuming that's what the SQL is doing as opposed to an object named database with a property named fieldNames