B
broncojim
I need to automatically populate values of two controls on a form based on
values that are input into 3 other controls on the same form. The values of
the 3 other controls each have a query as their source. It would go
something like this:
3 main controls: cmbKVA (17 possible choices), cmbSECVOLT (8 possible
choices), cmbTYPE (2 possible choices)
Once the data is populated into these 3 controls, then I would like the form
to calculate the value for the other two controls. They are txtITEM (41
possible choices that would be narrowed down to one based on values input
into the 3 main controls), and txtLOCATION (5 possible choices that would be
narrowed down to one based on values input into the 3 main controls).
I am fairly new to VBA, but I do have some experience creating simple code.
I would appreciate it if someone would give me advice on not only the code to
use, but also how to structure the data that the calculation would pull from
(ie can all of the values be inserted into VBA or should they be pulled from
a table or query).
If it matters, my table that these values will be stored in is actually an
ODBC-linked Oracle table.
Thanks,
Jim
values that are input into 3 other controls on the same form. The values of
the 3 other controls each have a query as their source. It would go
something like this:
3 main controls: cmbKVA (17 possible choices), cmbSECVOLT (8 possible
choices), cmbTYPE (2 possible choices)
Once the data is populated into these 3 controls, then I would like the form
to calculate the value for the other two controls. They are txtITEM (41
possible choices that would be narrowed down to one based on values input
into the 3 main controls), and txtLOCATION (5 possible choices that would be
narrowed down to one based on values input into the 3 main controls).
I am fairly new to VBA, but I do have some experience creating simple code.
I would appreciate it if someone would give me advice on not only the code to
use, but also how to structure the data that the calculation would pull from
(ie can all of the values be inserted into VBA or should they be pulled from
a table or query).
If it matters, my table that these values will be stored in is actually an
ODBC-linked Oracle table.
Thanks,
Jim