Results 1 to 4 of 4
  1. #1
    BDibz is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    62

    Add a function in reports to clear a field for each record


    This may be a bit unusual, but here's what I'm trying to do.

    I have a transaction-based inventory tracker to keep track of how many electrodes are on hand at any point. Some of these Electrodes are part of a Purchase Order (PO) so we added the option to tag a transaction with a PO number. This report aggregates the number of electrodes checked in by PO number, so they can see if they have received all of the electrodes to fulfill the PO. Since this list would grow indefinitely, I added a "clear all POs" button as a temporary solution that Updates all records in the transactions table, setting PO = ''.

    I want to be able to do this on a per-electrode basis - so you'd have a button next to each of the entries on the report that would allow you to clear the PO field for all of the transaction entries that have Electrode ID equal to the one correlating to the button you push. Any suggestions for a good way to do this?
    Click image for larger version. 

Name:	5-24.PNG 
Views:	9 
Size:	11.6 KB 
ID:	34186

  2. #2
    ranman256's Avatar
    ranman256 is online now VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    you dont put buttons on reports, you put them on the form, run macros from there THEN run reports.

  3. #3
    BDibz is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    62
    Ok, well if I were doing the exact same thing in a form, is it doable?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,722
    BDibz,

    Have you reviewed Allen Browne's info re Quantity on Hand?

    I don't know the details of your set up, but I see 2 concepts/processes involved and offer these comments for consideration.

    1) You do a stock taking of physical electrodes-- that gives you the physical counts. You record the quantity of electrodes entering your system as positive transactions and you record quantity of electrodes used/given to employees as negative transactions.
    So at any time t, the quantity of Hand = Last stockTaking Count + QuantityIncoming - Quantity Outgoing/used

    2) You have Purchase Orders containing requested quantity of electrodes and you have Goods (electrodes) received. You also have some internal process to record goods received --this is a check/audit/ accounting of complete or partial shipments of electrodes. I'm sure there are situations where the supplier(s) may not have X electrodes so send less than X and owe you the remainder. So a PO quantity may not equal the shipped/received quantity.
    So it seems with respect to PurchaseOrders and GoodsReceived you would have
    CurrentElectrodeBalance = ElectrodesOrdered - ElectrodesReceived

    and this would applied for each Electrode type and each Supplier (which probably equates to your PO??)


    Another point to consider is that Reports are meant for printing. And Forms are meant for user interaction.

    Good luck with your project.

    OOOps: I see ranman has responded while I was typing.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Button to clear a record, not working
    By snipe in forum Forms
    Replies: 3
    Last Post: 02-17-2014, 02:23 PM
  2. Clear field
    By Fortfury in forum Forms
    Replies: 1
    Last Post: 12-28-2012, 08:20 PM
  3. Need help to clear a Form Field
    By vkumar in forum Access
    Replies: 4
    Last Post: 05-31-2012, 02:18 PM
  4. Replies: 3
    Last Post: 02-13-2012, 08:14 AM
  5. Clear fields in a record
    By stryder09 in forum Access
    Replies: 9
    Last Post: 05-12-2011, 01:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums