move an item from list box to another list box in one form (1 Viewer)

Hema1

New member
Local time
Today, 10:59
Joined
Sep 28, 2023
Messages
22
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: 56
  • lab.accdb
    928 KB · Views: 53
  • Screenshot_2.png
    Screenshot_2.png
    17.4 KB · Views: 56
  • Screenshot_3.png
    Screenshot_3.png
    18.2 KB · Views: 53
  • Screenshot_4.png
    Screenshot_4.png
    32 KB · Views: 62
Last edited:

Hema1

New member
Local time
Today, 10:59
Joined
Sep 28, 2023
Messages
22
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.
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 04:59
Joined
May 21, 2018
Messages
8,529
That is because your tables are a non-normalized disaster.
It does not move just the name it creates a linked record.
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 04:59
Joined
May 21, 2018
Messages
8,529
Noone should waste anytime on this request until you fix the tables. If not total waste of time.
 

Hema1

New member
Local time
Today, 10:59
Joined
Sep 28, 2023
Messages
22
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

  • lab3.accdb
    1.3 MB · Views: 67

MajP

You've got your good things, and you've got mine.
Local time
Today, 04:59
Joined
May 21, 2018
Messages
8,529
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

Top Bottom