I have a table called Fiscal year. In this table I have fields for "Fiscal
Year" "month" and "Name". It also has fields for what was budgeted at each
location.
Ok... that's fine... is "Name" the name of the location? so the table
has four fields?
Do note that Month and Name are reserved words, and should be avoided
as fieldnames. You might want to consider changing these fieldnames to
(say) BudgetMonth and LocName.
What I need to do is get the information from this table called
Fiscal year" into a Table called VS.
Ummm... I doubt that you do need or want to do this.
Storing data redundantly is ESSENTIALLY NEVER a good idea. Could you
explain the structure of VS, and why you feel it necessary to store
the same budget number in two different tables, realizing that this
leaves you wide open to update anomalies? Say you do store the data
into VS, and then someone comes along and edits the budget amount in
the [Fiscal Year] table. You now have two budget figures; they're
different; and you have NO WAY ON EARTH to tell by looking at the data
which one is right. Is this a satisfactory situation for you?
I have a form set up to enter data into
VS. What I would like to do is have 3 combo box's one for Fiscal Year one
for month and one for name. When the user select the Fiscal Year and Month
and Name in there CBO's I would like the values that are in the budget fields
to autopopulate fields on the form for the table VS.
As opposed to creating a Query joining VS to [Fiscal Year], joining by
[Fiscal Year], [Month], and [Name]? That leaves the budget figures in
the budget table - where they belong - linked to the other field
values in VS.
If you REALLY want to do this - and, as you can gather, I don't think
that you do! - post back; it nees some VBA code but it can be done. An
Update query might be better (rather than using a Form), depending on
the context, however.
John W. Vinson[MVP]