Save data and insert into Checkbox

Asked

Viewed 156 times

1

To start I will already expose my problem: After the person responsible for adding this new service how will automatically appear in the form where is the list of all services in checkbox form?

At this moment I am developing a project of end of course and in the middle came up a problem that I do not know how to solve.

Well, it’s an application in Visual Basic that records what a particular student/teacher does in the school library. One of the buttons we have is inserting a new service that the library may add to its list one day later in the database. In a separate form, we will have a list of all this data from the checkbox database to select what the user will do in the library and then submit.

Registration form for the new service inserir a descrição da imagem aqui

The way we plan to submit the data
(here appeared a new checkbox, depending on what was created) inserir a descrição da imagem aqui

  • It would be interesting to supplement your question with the code of your form.

  • There is no code yet for that I asked for help. Thank you.

  • You can try using a for and instantiate checkbox manually or use a datagrid with Binding.

  • Our goal was to facilitate the work of the employee or a code that automatically after entering the service appeared in this other form as checkbox

1 answer

1

Save the services in a database table. To display all the options for the employee, the ideal is to use a Combobox, because the presentation mode is independent of the amount of services. Just make a SELECT in the database and insert the values in the Combobox options.

  • Thank you very much ask suggestion, maybe it will be the best option. But imagine that the library will have a new service for example "educational games" (just one example) and then this will be inserted into the database, in turn there is no such record of the new service at the time of the person responsible for the library. That’s where my doubt lies.

  • You will do the SELECT and put the results on the screen on the screen that the employee will select the activity that the user will do in the library. You’ll get them from the database, understand? On the first screen you insert, on the second you get.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.