我以前从未在MS Access 2010表单中创建过图表,并且想询问任何人是否有要创建的代码1.如果可能的话,将基于记录集放置在图表中的信息。
dim db as dao.database
dim rs as dao.recordset
dim strsql as string
dim AMOGraph as object
set db = currentdb()
strsql = "Select * [column1] From Table1 WHERE [Column1] = '" & a & "'"
set rs = db.openrecordset(strsql)
我被困在这里......是否可以从这里创建一个图表(条形图)?任何帮助将不胜感激。
答案 0 :(得分:0)
答案一直盯着我......
with Forms![Graph1}
.rowsource = "Select * From Blah"
.requery
end with