|
有一段代码,如何精简,不知道什么原因,在Access 板块那里发不了,一直出错,发这里了。
ACCESS 窗体中的一段代码。
If Me.txtType = "Rocker_Panel" Then
Forms![frm04_01_first]![Rocker_Panel1] = Me.txtSupplyChain.Value
Forms![frm04_01_first]![Rocker_Panel2] = Me.txtTapeSupplier.Value
Forms![frm04_01_first]![Rocker_Panel3] = Me.txtTapePrice.Value
Forms![frm04_01_first]![Rocker_Panel4] = Me.txtPriceUnit.Value
Forms![frm04_01_first]![Rocker_Panel5] = Me.txtPriceToWhom.Value
Forms![frm04_01_first]![Rocker_Panel6] = Me.txtComments.Value
Forms![frm04_01_first]![Rocker_Panel7] = Me.txtTesaCAS_Project.Value
ElseIf Me.txtType = "Door_Edge_Protection" Then
Forms![frm04_01_first]![Door_Edge_Protection1] = Me.txtSupplyChain.Value
Forms![frm04_01_first]![Door_Edge_Protection2] = Me.txtTapeSupplier.Value
Forms![frm04_01_first]![Door_Edge_Protection3] = Me.txtTapePrice.Value
Forms![frm04_01_first]![Door_Edge_Protection4] = Me.txtPriceUnit.Value
Forms![frm04_01_first]![Door_Edge_Protection5] = Me.txtPriceToWhom.Value
Forms![frm04_01_first]![Door_Edge_Protection6] = Me.txtComments.Value
Forms![frm04_01_first]![Door_Edge_Protection7] = Me.txtTesaCAS_Project.Value
ElseIf Me.txtType = "Wheel_Arch" Then
Forms![frm04_01_first]![Wheel_Arch1] = Me.txtSupplyChain.Value
Forms![frm04_01_first]![Wheel_Arch2] = Me.txtTapeSupplier.Value
Forms![frm04_01_first]![Wheel_Arch3] = Me.txtTapePrice.Value
Forms![frm04_01_first]![Wheel_Arch4] = Me.txtPriceUnit.Value
Forms![frm04_01_first]![Wheel_Arch5] = Me.txtPriceToWhom.Value
Forms![frm04_01_first]![Wheel_Arch6] = Me.txtComments.Value
Forms![frm04_01_first]![Wheel_Arch7] = Me.txtTesaCAS_Project.Value
End If
|
|