如题,在VBA中窗体启动时无加载子窗体数据源,只有在执行查询按纽时,才赋予数据源.
如下:
Me.DB_1.Form.RecordSource = "SELECT tnoid, tnam FROM DBBackup WHERE mark2 In ("三类地区","四类地区","五类地区");"
问题应该出在"三类地区","四类地区","五类地区"的双引号,我试着去掉,变成:
Me.DB_1.Form.RecordSource = "SELECT tnoid, tnam FROM DBBackup WHERE mark2 In (三类地区,四类地区,五类地区);"
还是不可以,大家帮我看看,应该如何处理,是不是需要加&之类的~~~