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 / June 2006

Tip: Looking for answers? Try searching our database.

AddNew method added two records at time :(

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tiger - 19 Apr 2006 15:05 GMT
I am working on a form. the text boxes are bound to a data table. so the user
can either view or edit the data table using the form.

Instead of letting user use the navigation button, i created buttons to
perform the view and edit procedure.

when adding a new record, I used AddNew, and Update method of the Recordset.
However, every time a new record was added, it also create a blank record in
the table.

I can get around this problem by adding Eidt method satement right below the
AddNew statement.  I couldn't understand why!
Douglas J. Steele - 20 Apr 2006 00:04 GMT
Bound tables automatically update. If you want to do it yourself, you may
want to go with an unbound form.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

>I am working on a form. the text boxes are bound to a data table. so the
>user
[quoted text clipped - 12 lines]
> the
> AddNew statement.  I couldn't understand why!
doublered - 13 Jun 2006 03:34 GMT
"tiger" <tiger@discussions.microsoft.com> дÈëÏûÏ¢ÐÂÎÅ
:1F14B05F-0327-4A7E-9926-D7411DAF8F97@microsoft.com...
> I am working on a form. the text boxes are bound to a data table. so the user
[quoted text clipped - 9 lines]
> I can get around this problem by adding Eidt method satement right below the
> AddNew statement.  I couldn't understand why!
 
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.