move an item from list box to another list box in one form

Hema1

New member
Local time
Today, 22:25
Joined
Sep 28, 2023
Messages
23
I want to learn how to move an item from list box to another list box in one form, and how to extract the sum of the price field in list box to another field in the form, like this picture. Here is an example.
 

Attachments

  • laboratory.gif
    laboratory.gif
    272.1 KB · Views: 92
  • lab.accdb
    lab.accdb
    928 KB · Views: 91
  • Screenshot_2.png
    Screenshot_2.png
    17.4 KB · Views: 90
  • Screenshot_3.png
    Screenshot_3.png
    18.2 KB · Views: 90
  • Screenshot_4.png
    Screenshot_4.png
    32 KB · Views: 99
Last edited:
You were given a potential solution here:

What didn't work about that?
This solution is not quite what I want
I want when I select an item from a listbox whose data source is a table, move to another listbox and all records move to another table.
If you notice the image, only the name of the analysis is transferred, apparently to the second list box, but in reality, it transfers all the records related to this item, such as the price field, which appears in the image to be collected in the main form, and this is what I want.
 
That is because your tables are a non-normalized disaster.
It does not move just the name it creates a linked record.
 
Noone should waste anytime on this request until you fix the tables. If not total waste of time.
 
Noone should waste anytime on this request until you fix the tables. If not total waste
i fineshed moving item from list to another but i need to link by id ,code without primary key
 

Attachments

Need to read about database normalization. This does not make any sense to me. But what do I know?
 

Users who are viewing this thread

Back
Top Bottom