Option Compare Database
Private mobjMyListBox As Object
' *********************
Private Sub Form_Load()
Set mobjMyListBox = OpenMyListbox_FS()
With mobjMyListBox
.DisplayField = "フリガナ"
Set .ListBox = lstCustomer
Set .TextBox = txtCustomer
End With
End Sub
' ****************************************
Private Sub Form_Unload(Cancel As Integer)
CloseMyListBox_FS mobjMyListBox
End Sub
Private WithEvents mtxt As Access.TextBox
'************************************************
Public Property Set TextBox(txt As Access.TextBox)
Set mtxt = txt
mtxt.OnChange = "[Event Procedure]"
End Property
'**************************
Private Sub mtxt_Change()
' OnChangeイベントの処理を記述する
End Sub