Advice on how to achieve code for loading Datagridview.

  • Thread starter Thread starter david12king
  • Start date Start date
D

david12king

Guest
I have a datagridview that is bound to a table in a MS Access database. All of the connections were created at design time. There is a datetimepicker that filters and sets the date, also there are a few other textboxes that set the dafault value for some of the fields on the datagridview.

This form is basically a Time Sheet Each employee needs to have at least one entry per day showing employee number, name, Activity, Hours worked and equipment ID. All the information can be entered, and saved.

The "Activity" column represents if the employee worked (TO), not worked (NW), didnt show(FA), was sick (ED), on vacation (VA), or had a permit to miss (PO).

I need to code a button that would load all the employees that have not been entered on the grid. For example:

I have 200 employees and 150 are registered as worked, 20 on vacation, 5 had permit to miss and 5 were on vacation. Im missing 20 employees that didnt work and i dont know the reason and i dont really know who they are. I need to click a button that would load all 20 these employees at the end of the grid so i can assign them a not worked on the activity column.

Im new to coding and I dont even know where to start i dont even know what to look for or how to word it to search on Google. Some examples for loading employees after the datagridview has information on it already would be great.

Thanks

Continue reading...
 
Back
Top