When you say you want to store the name and mark in one record, unless you are talking about a database then you are already doing that when you add them to the Students array so you may not want to get rid of that array.
To create two separate arrays just do this in frmStudentMarks
and fill them in cmdAddRecord_Click just like you the Students array.Code:Option Explicit Dim Element As Integer Private NameArray() As String Private MarkArray() As Integer




Reply With Quote