R
Rajtomar
have a simple data base of maintaining expenses. When user enter
expense details in the expense form, two fields use lookup table i.e.
on whom the expense was incurred and expense category like food,
clothes, study etc. I 've given a command button near these lookup
boxes for the user to add/edit the list of lookup table(In case the
user doesn't fid a suitable match in the category). This command
button opens the form connected to lookuptable in datasheet view. The
user can now view and add a new category or edit a existing category.
This same lookup table is used to send criteria to a select query. So
the select query will always get the updated lookup table. Now what
about the records created before with the older name of the category.
They will never be able to be retrieved by that query(as the criteria
lookup is also changed)
Now my problem is that if a user edits a category in a lookup table,
than the previous name of the category will never be selected for the
query and hence will always remain unlooked in the table.
So there should be a way that as soon as a user edits the name of a
catgory, a procedure should run and should replace all the existing
records in the table with the new name as edited by the user.
I hope i am clear to every one and also i am a sure that if there is
a
procedure for this its gonna be tough one.
expense details in the expense form, two fields use lookup table i.e.
on whom the expense was incurred and expense category like food,
clothes, study etc. I 've given a command button near these lookup
boxes for the user to add/edit the list of lookup table(In case the
user doesn't fid a suitable match in the category). This command
button opens the form connected to lookuptable in datasheet view. The
user can now view and add a new category or edit a existing category.
This same lookup table is used to send criteria to a select query. So
the select query will always get the updated lookup table. Now what
about the records created before with the older name of the category.
They will never be able to be retrieved by that query(as the criteria
lookup is also changed)
Now my problem is that if a user edits a category in a lookup table,
than the previous name of the category will never be selected for the
query and hence will always remain unlooked in the table.
So there should be a way that as soon as a user edits the name of a
catgory, a procedure should run and should replace all the existing
records in the table with the new name as edited by the user.
I hope i am clear to every one and also i am a sure that if there is
a
procedure for this its gonna be tough one.