作者: todaynew 时间: 2011-9-7 11:29
可写一个自定义函数计算应付利息。作者: szgaofei 时间: 2011-9-12 22:05
Public Function paymoney(N1, n2, n3) As Currency
'n1为该笔认购的到账时间,n2为本开放日即查询日,n3为本次赎回的份额
Dim rs1 As Recordset
Dim rs As Recordset
'Dim 累计收益 As Currency
Set rs1 = CurrentDb.OpenRecordset("select * from [8-1受益权收益率调整记录] where 受益权类型 like '活期'")
rs1.Sort = "调整日期 ASC"
Set rs = rs1.OpenRecordset '要中转一次后才能让排序生效,要据此计算出利息分段区间