S
Seppen
Hi,
With the execution of following sub in a global module, msaccess crashes:
The goal is to delete all tabcontrols of a form and save the design of the
form.
What goes wrong?
(msaccess versie 2002, SP3)
(in the eventviewer I see event 1000 & 1001: Faulting application
msaccess.exe, version 10.0.6771.0, faulting module msaccess.exe, version
10.0.6771.0, fault address 0x00079bbb.)
Use of the sub is as follows
verwijdertabs "form1"
This is the sub:
Public Sub verwijdertabs(formke As String)
Dim frm As Form
Dim ctltabset As Control
DoCmd.OpenForm formke, acDesign
Set frm = Forms(formke)
For Each ctltabset In frm.Controls
If ctltabset.ControlType = 123 Then
DeleteControl frm.Name, ctltabset.Name
End If
Next
DoCmd.Close acForm, formke, acSaveYes
End Sub
With the execution of following sub in a global module, msaccess crashes:
The goal is to delete all tabcontrols of a form and save the design of the
form.
What goes wrong?
(msaccess versie 2002, SP3)
(in the eventviewer I see event 1000 & 1001: Faulting application
msaccess.exe, version 10.0.6771.0, faulting module msaccess.exe, version
10.0.6771.0, fault address 0x00079bbb.)
Use of the sub is as follows
verwijdertabs "form1"
This is the sub:
Public Sub verwijdertabs(formke As String)
Dim frm As Form
Dim ctltabset As Control
DoCmd.OpenForm formke, acDesign
Set frm = Forms(formke)
For Each ctltabset In frm.Controls
If ctltabset.ControlType = 123 Then
DeleteControl frm.Name, ctltabset.Name
End If
Next
DoCmd.Close acForm, formke, acSaveYes
End Sub