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 / General 1 / April 2006

Tip: Looking for answers? Try searching our database.

Button to export and run update query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
socasteel21 - 03 Apr 2006 14:34 GMT
I have a database that is used to process warranty claims.  Each record in my
main table (tblClaim) represents a claim.  Each claim has a status of Paid,
Unpaid, or Pending.  I would like to add a button that would automatically
export a query containing all information that our accounting department
would need.  It would also need to run an update query (which I have already
built) that changes all "Unpaid" claims to "Paid" and inserts the current
date into a field called "Export Date".  

As an extra safeguard, I would like to have a Message box that asks if I'm
sure if I would like to continue with two buttons "Yes" and "No".  Lastly, I
don't want any other users to be able to use this button.

Any help would be appreciated.

Thanks,

Shannan
David Mitchell - 05 Apr 2006 23:14 GMT
Shannan, you need to be a bit more specific.  What information do your
Accounts Dept require? Is it based on one record that you are viewing
or all records?  What criteria is your update query based on?  I assume
that it will only select those that have been paid and change them from
"unpaid" to "paid"?  If so perhaps a bit of code in the after update
event of the field would change the claim to "paid" without the need of
a query.

Finally, do you have some sort of login for the others who use the
database so you can prevent anyone else using the button by limiting
there access or view of it?

David A Mitchell
 
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.