我现在使用ADO的ActiveX控件连接数据库,问题是,控件只有在打开时成功连接数据库后,才能通过修改ConnectionString、RecordSourcc并Refrish改变连接的数据库,否则,修改操作不起作用。怎样才能在设计阶段不设置ConnectionString、RecordSource属性,而是在运行阶段通过修改ConnectionString、RecordSource属性,并使之生效,显示SQL检索结果?
您好,
很高兴看到您的问题解决。可以将您的解决方案分享给大家吗?
Damon Zheng MSDN Community Support | Feedback to us Develop and promote your apps in Windows Store Please remember to mark the replies as answers if they help and unmark them if they provide no help.