提问,关于Datalist的显示问题
vb吧
全部回复
仅看楼主
level 1
矮仔铭 楼主
我的DATALIST连到了数据表的Date段,Date段的数字形式是"20081123""20081124""20081125""20081126"类似的形式,但是动行时Datelist的显式会变成:20081124200811252008112320081126的样子,请问要怎么弄才可以按顺序排列~?
2008年11月22日 16点11分 1
level 0
在sql语句里 加上 order by [date]
2008年11月23日 00点11分 2
level 0
具体在哪个位置,代码是什么,我不懂!
2008年11月23日 08点11分 3
level 1
矮仔铭 楼主
继续等待答案!
2008年11月23日 14点11分 4
level 0
你那Datalist是如何填充数据的?
2008年11月23日 14点11分 5
level 1
矮仔铭 楼主
Set DataList1.RowSource = Adodc1DataList1.ListField = "date"Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\list.mdb;Persist Security Info=False"Adodc1.RecordSource = "select date from List"Adodc1.Refresh
2008年11月23日 14点11分 6
level 1
矮仔铭 楼主
我继续耐心的等!
2008年11月23日 16点11分 7
level 0
Adodc1.RecordSource = "select [date] from List order by [date]"
2008年11月23日 16点11分 8
level 1
矮仔铭 楼主
谢谢谢谢,真的太谢谢了!
2008年11月23日 16点11分 9
level 0
建议你看一下SQL方面的书,
2008年11月23日 16点11分 10
1