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 / Modules / DAO / VBA / February 2005

Tip: Looking for answers? Try searching our database.

two separate insert statements - only one works

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
leah f - 09 Feb 2005 12:33 GMT
I have a loop.  For each record I perform two checks.
For each error I want to write a record in an error table.  If two checks
fail, I want to write two records.

Code in the loop: mystring = "......"
                 db.execute (mystring)
                 mystring = "......"
                 db.execute (mystring)

If there are two errors, only the first record will be added.  If I
"comment" the first record, then the second will be written so it is not a
problem of the sql statement.

Any suggestions?
leah f - 09 Feb 2005 12:46 GMT
Problem solved.
 
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.