Hi - i have a very annoying problem which i hope someone can help me with.
i use MSAccess in a multi user environment with a front end mdb and a backend mdb. In essence the users would run a process that creates a text file (outside of access) - this text file is then imported into the front end mdb (in a temp like table) and the i perform an INSERT INTO statement from my temp table into the backend mdb - it works fine most of the time but quite often it fails to insert a few random records - it doesn't generate any errors. I can see the records int he text file and the temp table but form some reason it gets missed out.
There are about 6 users using access at the same time and data volumes are fairly high (500k-1mio rows) but this shouldn't be a problem. Backend db size is around 500mb compacted.
i perform the INSERT using the Database object e.g. <FrontEndDb>.Execute example sql below
sql = "INSERT INTO [" & pDestDb & "].tMain_Scalar " & _
"(RunNum,TrdNbr,RiskBook,Ccy,Type,Dictionary,Index,_Value,SourceSystem,RepDate) " & _
"SELECT " & lRunNum & ", TrdNbr, '" & sRiskBook & "', Ccy, 'PV', Dictionary, Ccy, hPV, 'FA', RepDate " & _
"FROM " & tblFrom & _
" WHERE ABS(PV) > 0"
with pDestDb being the backend db
i've tried using transactions but it made it worse. Would appreciate any help on this one !!!
thanks
i use MSAccess in a multi user environment with a front end mdb and a backend mdb. In essence the users would run a process that creates a text file (outside of access) - this text file is then imported into the front end mdb (in a temp like table) and the i perform an INSERT INTO statement from my temp table into the backend mdb - it works fine most of the time but quite often it fails to insert a few random records - it doesn't generate any errors. I can see the records int he text file and the temp table but form some reason it gets missed out.
There are about 6 users using access at the same time and data volumes are fairly high (500k-1mio rows) but this shouldn't be a problem. Backend db size is around 500mb compacted.
i perform the INSERT using the Database object e.g. <FrontEndDb>.Execute example sql below
sql = "INSERT INTO [" & pDestDb & "].tMain_Scalar " & _
"(RunNum,TrdNbr,RiskBook,Ccy,Type,Dictionary,Index,_Value,SourceSystem,RepDate) " & _
"SELECT " & lRunNum & ", TrdNbr, '" & sRiskBook & "', Ccy, 'PV', Dictionary, Ccy, hPV, 'FA', RepDate " & _
"FROM " & tblFrom & _
" WHERE ABS(PV) > 0"
with pDestDb being the backend db
i've tried using transactions but it made it worse. Would appreciate any help on this one !!!
thanks