goldwhispers
Programmer
ok this is my code
actually this is not the problem at all.... (the cc being set to an object)
the system is converting it to a #, ive changed the code like this
Sub IMNew()
Dim cc As String
Dim rs As DAO.Recordset
Dim bb As String
cc = "ABA"
Set rs = CurrentDb.OpenRecordset("SELECT TableName from ABA ")
', dbOpenSnapshot, dbSeeChanges)
Do Until rs.EOF
aa = rs!TableName
DoCmd.TransferDatabase acImport, "ODBC Database", _
"ODBC;DSN=FM_AVAF;UID=author;PWD=analyst;LANGUAGE=us_english;" _
& "DATABASE=FM_ABA", acTable, aa, aa
DoCmd.TransferText acExportDelim, , aa, "J:\external\FIM\IM\ABA\FIN" & Chr(46) & cc & aa & ".csv", True
Dim dbs As Database
Set dbs = CurrentDb()
dbs.Execute "drop table " & aa
rs.MoveNext
Loop
dbs.Close
rs.Close
the problem is chr(46) = . , now whether i put a . or chr(46) it returns a #. If i put any other character in its fine, someone help, why is this happening...i am doing this in VBA in access...
actually this is not the problem at all.... (the cc being set to an object)
the system is converting it to a #, ive changed the code like this
Sub IMNew()
Dim cc As String
Dim rs As DAO.Recordset
Dim bb As String
cc = "ABA"
Set rs = CurrentDb.OpenRecordset("SELECT TableName from ABA ")
', dbOpenSnapshot, dbSeeChanges)
Do Until rs.EOF
aa = rs!TableName
DoCmd.TransferDatabase acImport, "ODBC Database", _
"ODBC;DSN=FM_AVAF;UID=author;PWD=analyst;LANGUAGE=us_english;" _
& "DATABASE=FM_ABA", acTable, aa, aa
DoCmd.TransferText acExportDelim, , aa, "J:\external\FIM\IM\ABA\FIN" & Chr(46) & cc & aa & ".csv", True
Dim dbs As Database
Set dbs = CurrentDb()
dbs.Execute "drop table " & aa
rs.MoveNext
Loop
dbs.Close
rs.Close
the problem is chr(46) = . , now whether i put a . or chr(46) it returns a #. If i put any other character in its fine, someone help, why is this happening...i am doing this in VBA in access...