Private Function APP_Model() As Integer
'この関数は、製品モデルを盤情報に追加します。
Dim mydb As Database
Dim CL_Model_Shousai As New Model_Shousai
Dim sts As Integer
Dim i As Integer
Dim Mas_ID As Long
Set mydb = CurrentDb APP_Model = True sts = False For i = 0 To Me!仕様.ListCount If Me!仕様.Selected(i) = True Then sts = True Exit For End If Next If sts = False Then MsgBox "引用データを選択して下さい。", vbCritical + vbOKOnly Exit Function End If If vbNo = MsgBox("モデル引用を行います。", vbYesNo + vbInformation) Then Exit Function End If For i = 0 To Me!仕様.ListCount If Me!仕様.Selected(i) = True Then Mas_ID = Me!仕様.Column(0, i) If True <> CL_Model_Shousai.Copy_One(mydb, Mas_ID, Set_Model_ID) Then MsgBox "製品モデル詳細の Copy に失敗しました。", vbCritical + vbOKOnly APP_Model = False Exit Function End If End If Next
End Function
上記のコードでPrivate Function APP_Model() As Integerと宣言して
integerのはずなのになぜtrueなど代入できるのですか?
APP_Model = TrueなどAPP_Model = False

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/03 09:00
2016/03/03 10:18