is there a way to Update a table selected by the user
Exemple :
the user select from two listbox 2 ID. (lst1, lst2)
Then he enter a number in a textbox (txt1).
Then I do a calcul so to substract the number in txt1 from
the money that was linked to lst1.
I do the same for lst2 but I add instead
Here come my problem. The ID he pick in the 2 listbox can come from 2 different table. Table807 and Table850.
That mean the id in lst1 can either be from table807 and table850. Because of that I can't do a fixed update that will tell.. go uptate that in the table850.
I think that exemple.
UPDATE [Forms]![TransfertBudget]![txt3] SET ...
would work if the user would enter the name of the table
in txt3.
But I would like the information of the table name to come from the previous select I did for the 2 listbox. Is there a way?
Exemple :
the user select from two listbox 2 ID. (lst1, lst2)
Then he enter a number in a textbox (txt1).
Then I do a calcul so to substract the number in txt1 from
the money that was linked to lst1.
I do the same for lst2 but I add instead
Here come my problem. The ID he pick in the 2 listbox can come from 2 different table. Table807 and Table850.
That mean the id in lst1 can either be from table807 and table850. Because of that I can't do a fixed update that will tell.. go uptate that in the table850.
I think that exemple.
UPDATE [Forms]![TransfertBudget]![txt3] SET ...
would work if the user would enter the name of the table
in txt3.
But I would like the information of the table name to come from the previous select I did for the 2 listbox. Is there a way?