Can anyone tell me by looking at this code what is wrong with it? I know nothing about coding. I get this error when attempting to open this form to add a spouse to a registrants record from the form "frmMeetingRegistrantsInfo" or "frmMeetingExhibitorsInfo". Then the database freezes up and I have to close and re-open.
Private Sub Form_Load()
' Enable controls only when form is opened from the
' frmMeetingRegistrantsInfo
If IsLoaded("frmMeetingRegistrants") Or ("frmMeetingExhibitors") Then
'EnableControls Me, acDetail, True
Me!SpouseName.Enabled = True
Me!SpouseName = Me.OpenArgs
Me!SpouseName.SetFocus
Else
'EnableControls Me, acDetail, False
Me!SpouseName.Enabled = False
End If
End Sub
I'd welcome any suggestions.
Private Sub Form_Load()
' Enable controls only when form is opened from the
' frmMeetingRegistrantsInfo
If IsLoaded("frmMeetingRegistrants") Or ("frmMeetingExhibitors") Then
'EnableControls Me, acDetail, True
Me!SpouseName.Enabled = True
Me!SpouseName = Me.OpenArgs
Me!SpouseName.SetFocus
Else
'EnableControls Me, acDetail, False
Me!SpouseName.Enabled = False
End If
End Sub
I'd welcome any suggestions.