Dim dr As DataRow = DataTables("会员信息").Find("出生日期 ='" & Date.Today().AddDays(1) & "'") If dr IsNot Nothing Then MessageBox.Show(dr("姓名")) Dim dr1 As Row = Tables("会员信息.礼物").AddNew() dr1("会员ID")= dr("会员卡号") End If
3楼
youyuweinihao 发表于:2012/1/11 16:16:00
我的功能没有实现啊
代码没有反应啊
4楼
狐狸爸爸 发表于:2012/1/11 17:33:00
For Each dr As DataRow In DataTables("会员信息").DataRows Dim dt As Date = dr("出生日期") dt = new Date(Date.Today.Year,dt.Month,dt.day) If dt >= Date.Today AndAlso dt <= dt.Today.AddDays(5) Dim dr2 As DataRow = DataTables("礼物").AddNew() dr2("会员ID") = dr("会员卡号") End If Next
5楼
blackzhu 发表于:2012/1/12 7:39:00
以下是引用blackzhu在2012-1-11 13:52:00的发言: Dim dr As DataRow = DataTables("会员信息").Find("出生日期 ='" & Date.Today().AddDays(1) & "'") If dr IsNot Nothing Then MessageBox.Show(dr("姓名")) Dim dr1 As Row = Tables("会员信息.礼物").AddNew() dr1("会员ID")= dr("会员卡号") End If