Hi all. I will try and set the scene to help you understand what I am trying to acheive.
I currently have an access database that has data for a variety of gas storage sites.
Ultimately I output a table to excel, with the following headers
Basically the table displays the current flow rate, against the thoretical maximum flow rate. When the data is then exported to excel, it is then possible to follow a simple formula to take the current flow rate, from the maximum deliverability to give the theoretical maximum deliverability (max flow rate-current flow rate)
My current situation is that I now need to include planned outages into the data. i.e. at certain times in the year the maximum deliverability will change to a lower value.
In order to accomplish this I will need to add a calculation to change the deliverability value in the table, the easiest way would be to multiply the deliverability value by a number between 0-1. i.e. if there is no outage, the number is multiplied by 1, if the outage restricts flow rate by 50%, then i would multiply it by 0.5 etc. etc.
The curve ball in this situation is that the value needs to be changed on an hour per hour basis.
My question to you guys is, what do you think the best way of acheiving this would be? An append query determined by a form, to modify the access data? Or some VBA code to change the data once it gets into excel?
Any help would be much appreicated. If I have not supplied enough information, or have not been clear enough, please let me know and I will try to clear things up.
Many thanks
I currently have an access database that has data for a variety of gas storage sites.
Ultimately I output a table to excel, with the following headers
Code:
| SiteName | SiteName |
_________________________________________________________________
|Gas Day|Hour|Flow Rate|Deliverability||Flow Rate|Deliverability|
Basically the table displays the current flow rate, against the thoretical maximum flow rate. When the data is then exported to excel, it is then possible to follow a simple formula to take the current flow rate, from the maximum deliverability to give the theoretical maximum deliverability (max flow rate-current flow rate)
My current situation is that I now need to include planned outages into the data. i.e. at certain times in the year the maximum deliverability will change to a lower value.
In order to accomplish this I will need to add a calculation to change the deliverability value in the table, the easiest way would be to multiply the deliverability value by a number between 0-1. i.e. if there is no outage, the number is multiplied by 1, if the outage restricts flow rate by 50%, then i would multiply it by 0.5 etc. etc.
The curve ball in this situation is that the value needs to be changed on an hour per hour basis.
My question to you guys is, what do you think the best way of acheiving this would be? An append query determined by a form, to modify the access data? Or some VBA code to change the data once it gets into excel?
Any help would be much appreicated. If I have not supplied enough information, or have not been clear enough, please let me know and I will try to clear things up.
Many thanks