|
你这样做只能临时改变[工资输入]窗体中的工资项目标签名称,并不能永久保存下来,当关闭再打开时会丢失的。要在设计状态下打开才行,但是在MDE下是不能用的。改成以下代码:DoCmd.OpenForm "工资输入", acDesign
Forms!工资输入!bgz1.Caption = Me.gz1
Forms!工资输入!bgz2.Caption = Me.gz2
Forms!工资输入!bgz3.Caption = Me.gz3
Forms!工资输入!bgz4.Caption = Me.gz4
Forms!工资输入!bgz5.Caption = Me.gz5
'Forms!工资输入!bgz6.Caption = Me.gz6
'Forms!工资输入!bgz7.Caption = Me.gz7
'Forms!工资输入!bgz8.Caption = Me.gz8
'Forms!工资输入!bgz9.Caption = Me.gz9
'Forms!工资输入!bgz10.Caption = Me.gz10
Forms!工资输入!bgz11.Caption = Me.gz11
Forms!工资输入!bgz12.Caption = Me.gz12
Forms!工资输入!bgz13.Caption = Me.gz13
Forms!工资输入!bgz14.Caption = Me.gz14
Forms!工资输入!bgz15.Caption = Me.gz15
Forms!工资输入!bgz16.Caption = Me.gz16
Forms!工资输入!bgz17.Caption = Me.gz17
Forms!工资输入!bgz18.Caption = Me.gz18
Forms!工资输入!bgz19.Caption = Me.gz19
Forms!工资输入!bgz20.Caption = Me.gz20
DoCmd.Close acForm, "工资输入", acSaveYes
|
|