below is a load command button which loads data...what shows below is im trying to load some details from a label in one form onto a listbox in a different form. i dont know if the code below is correct but if anyone knows the problem, can someone help me correct it?
thanks!
Dim GName, YName As Variant (General Declarations)
Private Sub cmdLoad_Click()
Open "C:\student.txt " For Input As #1
Input #1, GName, YName
GList.List = GName
YList.List = YName
GList.AddItem (Student.lblGNa me.Caption)
YList.AddItem (Student.lblYNa me.Caption)
End Sub
thanks!
Dim GName, YName As Variant (General Declarations)
Private Sub cmdLoad_Click()
Open "C:\student.txt " For Input As #1
Input #1, GName, YName
GList.List = GName
YList.List = YName
GList.AddItem (Student.lblGNa me.Caption)
YList.AddItem (Student.lblYNa me.Caption)
End Sub
Comment