问题描述
我创建了一个访问权限社会维护资金数据库。
现在我想要一个组合框,这样当我在组合框中选择一年作为2016年时,我想将表单中的所有相关字段存储到
"维护2016"
当我在组合框中选择2017时,我想将所有数据存储在"Maintenence 2017& QUOT; table。
" Maintenance 2016"包含平面编号,家庭住宅名称,维护,维护,金额和存放的字段
日期。
和"Maintenance 2017"的相同字段
嗨krushan,
不是每年制作单独的表,而是(更好)使用一个表来维护所有维护,并使用查询来提取不同年份的信息:
  ;   SELECT * FROM Maintenance_tbl WHERE年份([Deposite Date])= ...(从组合框中选择年份)
Imb。
I have created an access database for society maintenance funding.
Now I want a combo box such that when I select a year as 2016 in combo box I want to store all the related fields from form into "Maintenance 2016"
and when I choose 2017 in combo box then i want to store all the data in "Maintenence 2017" table.
"Maintenance 2016" contains fields as Flat No, Householder Names, Maintanance From, Maintenance To, Amount, And Deposite Date.
and same fields for "Maintenance 2017"
Hi krushan,
Instead of making separate table per year, you can (better) use one table for all Maintenances, and use a query to extract the information for the different years:
SELECT * FROM Maintenance_tbl WHERE Year([Deposite Date]) = ... (select the year form the combobox)
Imb.
这篇关于通过在一个组合框中选择一个值,将数据存储在不同的表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!