hello expert !
i have the probleum in insert into query
and i am sending some code of my programe in which i open a connection and use a method to covert the string in to tablename
whether it is right to open a database like this and create a table name like this
if you require the whole code then informed me
[code=vb]
Do While sDirFolder <> ""
If sDirFolder <> "." And sDirFolder <> ".." Then
Set dbchild = Workspaces(0).O penDatabase(txt ChildMDBPath & "\" & sArrayFolder(ic ount) & "\" & sDirFolder)
sTable = sDirFolder
sarray() = Split(StrRevers e(sTable), "\")
sTable = StrReverse(sarr ay(0))
sTable = Replace(sTable, ".mdb", "")
sTable = "V" & sTable
MsgBox " the value in stable" & sTable
squery = "Insert into" & txtparenttable & "IN'" & txtparentMDBFil e & "' select * from " & sTable & "IN '" & txtChildMDBPath & "\" & sArrayFolder(ic ount) & "\" & sDirFolder & "'"
dbparent.Execut e (squery)
End If
sDirFolder = Dir()
Loop
Next[/code]
i have the probleum in insert into query
and i am sending some code of my programe in which i open a connection and use a method to covert the string in to tablename
whether it is right to open a database like this and create a table name like this
if you require the whole code then informed me
[code=vb]
Do While sDirFolder <> ""
If sDirFolder <> "." And sDirFolder <> ".." Then
Set dbchild = Workspaces(0).O penDatabase(txt ChildMDBPath & "\" & sArrayFolder(ic ount) & "\" & sDirFolder)
sTable = sDirFolder
sarray() = Split(StrRevers e(sTable), "\")
sTable = StrReverse(sarr ay(0))
sTable = Replace(sTable, ".mdb", "")
sTable = "V" & sTable
MsgBox " the value in stable" & sTable
squery = "Insert into" & txtparenttable & "IN'" & txtparentMDBFil e & "' select * from " & sTable & "IN '" & txtChildMDBPath & "\" & sArrayFolder(ic ount) & "\" & sDirFolder & "'"
dbparent.Execut e (squery)
End If
sDirFolder = Dir()
Loop
Next[/code]
Comment