Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Database Design / August 2005

Tip: Looking for answers? Try searching our database.

Preventing duplicate updates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mscertified - 09 Aug 2005 16:46 GMT
I have a system that allows reporting from imported data. I keep a track of
what has been imported via a table called tblImportLog. The data itself goes
into tblImportData - this table has no possible unique key.
When a report is requested, I look in the log to see if the needed data has
been imported,
if not, it gets imported.
This is the theory....
But what is happening is that sometimes the data gets imported twice. I have
looked at the code and cannot for the life of me figure out what is happening.
This does not happen every time - only sometimes.
I use a DLOOKUP on the record in the tblImportLog to determine if the data
has been imported. If the dlookup fails, I am even doing a failsafe check by
checking the actual data table and if I find data in there I issue a Msgbox
indicating the log is out of sync with the data.
It seems that maybe the DLOOKUP is returning NULL even though there is a
record there - this is the only reason I can think of.

Any ideas?
KARL DEWEY - 09 Aug 2005 23:16 GMT
Use all of the fields of your table called tblImportLog for a index key.
In design view highlight all of the fields and click on the key icon and save.

> I have a system that allows reporting from imported data. I keep a track of
> what has been imported via a table called tblImportLog. The data itself goes
[quoted text clipped - 14 lines]
>
> Any ideas?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.