accessjack
Programmer
I have two tables:
tblBalance has 2 fields (Account & Balance)
tblCrosstab has 13 fields (Account, Jan, Feb, ..., Dec)
tbl balance always has the current months balance. At the end of each month, I have an update query which says to update [Mth] in the tblCrosstab using the latest balance from the tbl Balance. This works perfect, however, each month I have to manually go into the update query and change the month field to the appropriate month, ie. Jan to Feb to make the query work. I'd like to have the field be a parameter, so at run-time, it prompts, "Please enter the month you want to update". Remember, the parameter is not a criteria, rather, it needs to be the actual field name.
Since I'm handing this database off to another colleague, I'm worried they'll accidentilly forget to update the query, and in effect, overwrite last months balances in the crosstab table.
Any help is appreciated.
Accessjack
tblBalance has 2 fields (Account & Balance)
tblCrosstab has 13 fields (Account, Jan, Feb, ..., Dec)
tbl balance always has the current months balance. At the end of each month, I have an update query which says to update [Mth] in the tblCrosstab using the latest balance from the tbl Balance. This works perfect, however, each month I have to manually go into the update query and change the month field to the appropriate month, ie. Jan to Feb to make the query work. I'd like to have the field be a parameter, so at run-time, it prompts, "Please enter the month you want to update". Remember, the parameter is not a criteria, rather, it needs to be the actual field name.
Since I'm handing this database off to another colleague, I'm worried they'll accidentilly forget to update the query, and in effect, overwrite last months balances in the crosstab table.
Any help is appreciated.
Accessjack