The database displays/prints service reports which include numerical data and comments about the quality of my customers water. Right now, the comments are input by the secretary based on a predefined list (she just enters the numerical values that correspond to a specific comment and the comment is displayed on the report when it is generated).
The comments can be calculated by running several conditional statements on the data that she enters. I'm trying to automate the calculation of these comments with an algorithm that I wrote.
After doing some searching for information on vba functions, I assume thats what I need to create to accomplish this.
I am unsure as to where to write this vba function that contains the algorithm I want to implement and how to get the data from the tables to be available to this function (the data is contained in several different tables).
The end result I'm looking for is for the function to write the comments to the report based on calculation of the data rather than having the secretary input the comments manually (and storing them in a table when the data from the service report is stored).
The comments can be calculated by running several conditional statements on the data that she enters. I'm trying to automate the calculation of these comments with an algorithm that I wrote.
After doing some searching for information on vba functions, I assume thats what I need to create to accomplish this.
I am unsure as to where to write this vba function that contains the algorithm I want to implement and how to get the data from the tables to be available to this function (the data is contained in several different tables).
The end result I'm looking for is for the function to write the comments to the report based on calculation of the data rather than having the secretary input the comments manually (and storing them in a table when the data from the service report is stored).