根据日期将Excel数据检索到数据网格 [英] Retrieving excel data to data grid based on date

查看:73
本文介绍了根据日期将Excel数据检索到数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我有一个包含5列的Excel工作表,该日期是5列之一.
现在,我想根据特定日期从工作表检索数据到数据网格.

Hi I have an excel sheet with 5 columns, on that date is one of 5 columns.
Now, I want to retrieve data from sheet to data grid based on particular date.
How can I do it?

推荐答案

可能会有更好的方法,但这对我有用

使用SQL batabase使用OPENDATASOURCE读取excel文件
使用查询选择所需的数据
使用数据填充网格
There could be better ways of doing this but this works for me

using SQL batabase read the excel file using OPENDATASOURCE
select the required data using a query
use the data to populate the grid


这篇关于根据日期将Excel数据检索到数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆