Button to export and run update query

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • socasteel21 via AccessMonster.com

    #1

    Button to export and run update query

    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 AccessMonster.c om
    TRIBUN855 menghadirkan informasi lengkap seputar permainan online terbaru, akses VIP player, game online gratis, permainan tanpa uang asli serta berbagai fitur dan mekanisme permainan digital.

  • David Mitchell

    #2
    Re: Button to export and run update query

    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

    Comment

    Working...