|
A 于2013-10-16 20-38-12:
Dim A As String
Dim B As String
Dim C As String
Dim D As String
On Error GoTo Ctl_Err
If IsNull(Me.计算.Value) = False Then
Me.计算.Value = Eval(Me.计算.Value)
Else
Me.计算.SetFocus
Exit Sub
End If
If OpenArgs "" Then
A = OpenArgs
B = Mid(A, 1, InStr(1, A, ",") - 1)
A = Replace(A, B & ",", "")
If InStr(1, A, ",") = 0 Then
C = B
D = A
Forms(C).Form.Controls(D).Value = Me.计算.Value
Else
C = Mid(A, 1, InStr(1, A, ",") - 1)
A = Replace(A, C & ",", "")
D = A
Forms(B).Controls(C).Form.Controls(D).Value = Me.计算.Value
End If
DoCmd.Close acForm, "myCalc"
End If |
|