我请说下,VB.NET如何在listbox中显示数据库的某一字段的内容(ACCESS)?
比方我要显示表"凭证字"的字段,字段名"凭证字",给代码吧,代码尽量全!从private sub Form_load到end sub已有代码
dim sqlstring as string="select 凭证字 from 凭证字"
Dim connstr as String="Provider=Microsoft.Jet.Oledb.4.0;"& "Data source=rent.mdb
dim gt as new dataTable
dim dataAdapter as new OleDb.OleDbDataAdapter(sqlstring,connStr)
之后如何写代码才能在LISTBOX中显示数据库中凭证字字段的内容