Hi,
I'm fairly inexperienced in Access. I'm in the process of converting a series of very complicated Excel spreadsheet to an Access database. In that spreadsheet there are a list of ~20 constants that are used to determine how much of a given material will be used. For example, one constant is the weight of ink per square inch. The spreadsheet uses other inputs (area of paper being printed, % of the paper being covered) to calculate a weight of ink for one printing. For simplicity, using the Name Manager functionality, the constant is named "Ink" and can be used throughout the workbook for calculations by typing "Ink" into the formula. And because it is a referenced cell, if I need to change the value of the constant, I can with one click and the value will be updated in all calculations.
I want the same functionality in Access. This constant will be used in about a dozen queries so if the value ever changes and I use the "hard" number, I will have to comb back through all of the queries to update it (or more likely, someone else less computer literate will need to update it so I need a user friendly way to manage these constants).
I tried putting the ~20 constants in a table (named Constants) with column 1 being a 1-word description of each constant named Description, and column 2 is the numerical value and the column is titled K-value. Using this, I tried to pull values in using dlookup("K-value","Constants","Description="&"Ink") in the query expression builder but it did not work. Changed the syntax as well, so it was DLookUp([Constants]![K Value],[Constants],[Constants]![Description]="Ink") but then when I run the query/open it in spreadsheet view I get prompted for each of the values in Dlookup.
I like the idea of keeping the constants in a table as it will be user friendly to update the values. Does Access have anything I can use to simulate the name manager functionality in Excel?
Any ideas?
Thanks in advance.