近5天的作法:
一、按下建一公用模块
Function rq() As String
rq = Date
For i = 1 To 4
rq = rq & "," & DateAdd("d", i, Date)
Next
End Function
二、窗体的打开事件加入以下代码(Combo11是你的组合框,提前在设计视图中设来源类型为值列表)
Private Sub Form_Open(Cancel As Integer)
Me.Combo11.RowSource = rq
End Sub
近5天的作法:
一、按下建一公用模块
Function rq() As String
rq = Date
For i = 1 To 4
rq = rq & "," & DateAdd("d", i, Date)
Next
End Function
二、窗体的打开事件加入以下代码(Combo11是你的组合框, ...
koutx 发表于 2009-2-16 19:29