get listbox values from combobox multiples selection

ryprobg

Member
Local time
Today, 13:00
Joined
Sep 3, 2022
Messages
59
in this db a want to get the emails in listbox from selectin combobox multiple choises.
how can i get it into table (t_dci) automatiquely thank you for help me.
db in the attachements below
login : admin
passe :1234
 

Attachments

Hi. The simple answer is you don't. If the email info is already stored in a table, then you don't need to store it again in another table. Since you are already storing the ID for those email data, then all you need to do is use a query to join the two together when you need to use the email data.
 
Hi. The simple answer is you don't. If the email info is already stored in a table, then you don't need to store it again in another table. Since you are already storing the ID for those email data, then all you need to do is use a query to join the two together when you need to use the email data.
can you expalin in the db and post it to test
 
Hi

You are using MVF's in your table's which are not recommended.

Each of the fields in your MVF should be records in a related Table
 
When you create a record in t_dci
Will you only want to record 1 instance of Quoi ?
Will you want to record more than 1 Concerne?
 
When you create a record in t_dci
Will you only want to record 1 instance of Quoi ?
Will you want to record more than 1 Concerne?
yes i change combobox qoui and concerne to simple one value to record one value. but in resposable avisé i want MVF then i want to record multiple values in one time the target is to get the related emails stored in resp_acc table
 
If you need to record multiple Emails related to the 1 DCI then you need a table to record them and NOT an MVF
 
result:
choose one value in MVF (respavCBO) query1 give the related email
but if you choose two valus in MVF (respavCBO) query1 give just one email and not two
In that case, I still wouldn't store it. Open "Query1" again.
 

Attachments

this concept don't help me to get email values when i select names from combobox.
the concept i want is to load emails when i select names
 
Can you explain what it is that you need and how the example does not fit your requirements?
 
your email_resp field in table t_dci is a Short Text, therefore in your form i
made it also as Textbox (not listbox).

try changing "Résponsables avisés" in the form and see Email changes
with your selection.
 

Attachments

Just FYI to others who may follow this, this discussion has been continuing on in two other threads.
and
 
@theDBguy Thanks for linking to the other threads.
@ryprobg Welcome to the forum but in the future, please don't start multiple threads on the same question. It wastes our time and confuses you.
 

Users who are viewing this thread

Back
Top Bottom