Home > Archive > MS Access database support > April 2006 > Button to export and run update query









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Button to export and run update query
socasteel21 via AccessMonster.com

2006-04-03, 9:35 am

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

--
Message posted via webservertalk.com
http://www.webservertalk.com/Uwe/Fo...access/200604/1
David Mitchell

2006-04-05, 8:28 pm

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

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com