thank you for the reply and it does look like it will work but i must be missing something here is everything i have
Private Sub cmdadd_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets ("males" , "females")
'find first empty row in database
iRow = ws.Cells(Rows.Count, 1) _
.End(xlUp).Offset(1, 0).Row
'check for a Name
If Trim(Me.txtnamelast.Value) = "" Then
Me.txtnamelast.SetFocus
MsgBox "Please enter a Student Name"
End If
If Trim(Me.txtname1st.Value) = "" Then
Me.txtname1st.SetFocus
MsgBox "Please enter a Student Name"
End If
If Trim(Me.txtteacher.Value) = "" Then
Me.txtteacher.SetFocus
MsgBox "Please enter Teacher"
End If
If Trim(Me.txtdate.Value) = "" Then
Me.txtdate.SetFocus
MsgBox "Please enter a Date"
Exit Sub
End If
If OptionButtonmale.Value = True Then
Sheets("male").Cells(iRow, 1).Value = txtnamelast.Value
Sheets("male").Cells(iRow, 2).Value = txtname1st.Value
Sheets("male").Cells(iRow, 3).Value = txtdate.Value
Sheets("male").Cells(iRow, 4).Value = txtstarttime.Value
Sheets("male").Cells(iRow, 5).Value = txtendtime.Value
Else
Sheets("female").Cells(iRow, 1).Value = txtnamelast.Value
Sheets("female").Cells(iRow, 2).Value = txtname1st.Value
Sheets("female").Cells(iRow, 3).Value = txtdate.Value
Sheets("female").Cells(iRow, 4).Value = txtstarttime.Value
Sheets("female").Cells(iRow, 5).Value = txtendtime.Value
End If
Cells(iRow, 1) = WorksheetFunction.Proper(txtnamelast)
Cells(iRow, 2) = WorksheetFunction.Proper(txtname1st)
Cells(iRow, 4) = WorksheetFunction.Proper(txtteacher)
'clear the data
Me.txtname1st.Value = ""
Me.txtteacher.Value = ""
Me.txtnamelast.Value = ""
Me.txtdate.Value = ""
Me.OptionButtonmale.Value = False
Me.OptionButtonfemale.Value = False
Me.txtnamelast.SetFocus
End Sub