I was at her desk for a while and first I saw 2 selections under VB / TOOLS/ REFERENCES that werent there before. The "MISSING" selections you were talking about. I unchecked those. I also unchecked the calendar control as you instructed. I saved and closed it and re-opened it and tried to use it. Then I got a new message I never saw "COMPILE ERROR METHOD OR DATA MEMBER NOT FOUND" and it pointed to Visual Basic code:
Private Sub cmdAdd_Click()
Dim iRow As Long
Dim ws As Worksheet
Set ws = Worksheets("Visitor_Data")
'find first empty row in database
iRow = ws.Cells(Rows.Count, 1) _
.End(xlUp).Offset(1, 0).Row
'check for a type
If Trim(Me.txttype.Value) = "" Then
Me.txttype.SetFocus
MsgBox "Please enter a walk-in type"
Exit Sub
End If
'copy the data to the database
ws.Cells(iRow, 1).Value = Me.txttype.Value
ws.Cells(iRow, 2).Value = Me.txtLastName.Value
ws.Cells(iRow, 3).Value = Me.txtFirstName.Value
ws.Cells(iRow, 4).Value = Me.txtVisitingWho.Value
ws.Cells(iRow, 5).Value = Me.txtCalendar.Value
ws.Cells(iRow, 6).Value = Me.TxtComments.Value
It pointed to the part where it says "txtcalendar.value". So I gave up temporarily. She went to lunch and I will go back to her desk at 2:30. I will try again.
Bookmarks