25/02/2010, 12:52
Masalcı
DeleteControl nasıl kullanılacağını bulamadım
object browser da şöyle yazmış
Sub DeleteControl(FormName As String, ControlName As String)
bende kod arasına
Set ctl = DeleteControl("Form2", "Mytextbox1")
yazdım
tabiki oda kabul etmedi
Sub DeleteControl(FormName As String, ControlName As String)
nasıl kullanılmalı
nette şöyle bir kod buldum
Public Function clearForm()
Dim ctl As Control, ctls As Controls
Dim frm As Form
Dim x As String
DoCmd.openForm "JSA Form V2", acDesign
Set frm = Forms![JSA Form V2]
Set ctls = frm.Controls
For Each ctl In frm.Controls
x = Mid(ctl.Properties("Name"), 1, 1)
If x = "X" Then
DeleteControl frm.Name, ctl.Properties("Name")
End If
Next
DoCmd.Close acForm, "JSA Form V2", acSaveYes
End Function
object browser da şöyle yazmış
Sub DeleteControl(FormName As String, ControlName As String)
bende kod arasına
Set ctl = DeleteControl("Form2", "Mytextbox1")
yazdım
tabiki oda kabul etmedi
Sub DeleteControl(FormName As String, ControlName As String)
nasıl kullanılmalı
nette şöyle bir kod buldum
Public Function clearForm()
Dim ctl As Control, ctls As Controls
Dim frm As Form
Dim x As String
DoCmd.openForm "JSA Form V2", acDesign
Set frm = Forms![JSA Form V2]
Set ctls = frm.Controls
For Each ctl In frm.Controls
x = Mid(ctl.Properties("Name"), 1, 1)
If x = "X" Then
DeleteControl frm.Name, ctl.Properties("Name")
End If
Next
DoCmd.Close acForm, "JSA Form V2", acSaveYes
End Function