Hello, this use to work perfectly until i went from 2007 to 2003... basically few of my users need to use this DB in 2003 but they were getting an error, when i did some research i fixed few things but now i am stuck here.. can someone please assist?
error - run time error 3207 can not update. Database or object is read only
thanks! Summer
error - run time error 3207 can not update. Database or object is read only
Code:
Public Sub Standard(zAction As String, Optional zLongFileName As String, Optional zShortFileName As String, Optional zClient As String)
Dim strSQL As String
Dim hCarrier As String, hDate As String
Dim Elapsed As Variant, zTimer As Long, eMin As String, eSec As String
Dim zImport As String
Dim zCurrFolder As String
Dim X As Long
Dim zImportDT As Date
Dim zRecsAll As Long, zRecsPart As Long, zRecsDep As Long
Dim headerRecordFile As String, zero1RecordFile As String, zero2d_RecordFile As String, zero2e_RecordFile As String
zTimer = Int(Timer())
'Retrieve path of current database (includes trailing "\")
zCurrFolder = myWorkingFolder()
'Branch for action - import or export
Select Case zAction
'Case "Export"
'GoTo Export
Case "Import"
'Nothing here
End Select
'------------------------------------------------------------------------------
' Import
'------------------------------------------------------------------------------
zImport = "C:\Documents and Settings\Desktop"
'header records
DoCmd.DeleteObject acTable, "headerRecord"
'(Header_Record)
'(THR_Record)
Status ("Importing " & zShortFileName & " (HeaderRecord) ...")
[COLOR=red] DoCmd.TransferText acImportFixed, "headerRecord", "headerRecord", zImport, False, "" - > this is where it boms.. fromwhy i can tell everything looks good and my file is in .txt formt and not in any other format ...i am going crazy here...can anyone hel??? :mad:[/COLOR]
strSQL = "DELETE * FROM headerRecord where RECORD_IDENTIFIER<>'THR' or RECORD_IDENTIFIER is null;"
DoCmd.RunSQL strSQL
....
thanks! Summer
Last edited: