|
Private Sub Command146_Click()
Dim prj As String
Dim cn As String
Dim la As String
Dim rn As String
la = Me.LiftAddress
cn = Me.ContractNo
prj = Me.BasicInfo_Project
rn = Me.RegisterNo
Forms![safetyinspection]![Project] = prj
Forms![safetyinspection]![RegisterNo] = rn
Forms![safetyinspection]![Address] = la
Forms![safetyinspection]![ContractNo] = cn
DoCmd.OpenForm "SafetyInspection", acNormal
End Sub
但是一定要在本窗体的liftaddress,contractno,basicinfo_project,registerno值为非空的情况下才能传递,如果其中有一个空的就会报错,能不能解决这个问题?? |
|