nebakanezzar
Member
- Joined
- Apr 2, 2010
- Messages
- 6
- Programming Experience
- Beginner
Hey All,
I am new to VB, and in need of a little assistance. My goal is to create new training employee records, so far I am populating a listbox with employee names from the employee table (in access), using the following code:
Dim intAdd As Integer
For intAdd = 0 To lstName.Items.Count - 1
If lstName.GetSelected(intAdd) = True Then
lstAdd.Items.Add(lstName.Items(intAdd))
End If
Next intAdd
Here is where I am having the difficulty. From here I would like to select the employees who attended the training, and then using a button click event, create a subform with a list of the selected employees and a text box next to each name to capture the dates they attended the training. From here I want to create new training records using the employees employee number from the employee table as part of the primary key for the training record table.
neb.
I am new to VB, and in need of a little assistance. My goal is to create new training employee records, so far I am populating a listbox with employee names from the employee table (in access), using the following code:
Dim intAdd As Integer
For intAdd = 0 To lstName.Items.Count - 1
If lstName.GetSelected(intAdd) = True Then
lstAdd.Items.Add(lstName.Items(intAdd))
End If
Next intAdd
Here is where I am having the difficulty. From here I would like to select the employees who attended the training, and then using a button click event, create a subform with a list of the selected employees and a text box next to each name to capture the dates they attended the training. From here I want to create new training records using the employees employee number from the employee table as part of the primary key for the training record table.
neb.