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 / Forms / February 2005

Tip: Looking for answers? Try searching our database.

Update Table From Form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Murphy - 01 Feb 2005 08:54 GMT
Hi Folks,

Could anyone tell me how to update a table from a form.  I have both the
table and the form but need to know how to do the update using a button.

Thanks in advance,

Paul
William K. Hamilton - 01 Feb 2005 10:11 GMT
I found this most perplexing for a long time. The way I got round it
initially was to create another form linked to the table then fill the dater
inot that form and close it again.

This was rather cumbersome, so now, I open the table as a dataset and add
the data to the dataset. this is much more elegent but  it takes a lot of
trial and error to write the correct SQL statement. The best way to do this
is to greate a query that does what you want then look at the SQL statement
in that query.

> Hi Folks,
>
[quoted text clipped - 4 lines]
>
> Paul
rowiga - 01 Feb 2005 13:09 GMT
Access will save the data in you form automatically when you move from one
record to another or when you close the form. If the form isn't saving you
data make sure that the form is based on the table or a query that is based
on the table. Look at the form in design view and check the form properties.
The record source should show the table name or a query based on the table.

If you want a command button to do the job you can enter the following code
on the OnClick event for the button:

DoCmd.RunCommand acCmdSaveRecord

> Hi Folks,
>
[quoted text clipped - 4 lines]
>
> Paul
 
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.