SELECT [0814].签单保费, [0814].核保日期, [0814].使用性质, [0814].手续费
FROM 0814;
Private Sub test();
Dim strSQL As String;
strSQL="UPDATE [0814] SET [手续费] ='" & myFunction([字段1]) & "'";
DoCmd.Runsql strSQL;
End Sub;
Private Function myFunction(x As string);
Select Case x;
Case like '%家庭%';
myFunction = 0.1;
Case like '%非营业%';
myFunction = 0.2;
Case else;
myFunction = 0.3;
End Select;
End Function;