如何将DataGrid添加到ms访问? [英] How to add a DataGrid to ms access?

查看:85
本文介绍了如何将DataGrid添加到ms访问?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我正在使用MS Access.我有一个名为My_Car的表.我需要使用制造商",型号",州"和城市"字段来搜索汽车.它应该显示这些类别下的所有汽车.所有这些都应使用VB.Net中的数据网格来完成.谁能帮我吗?


谢谢.

Hi all,
I am using MS Access. I have a table named My_Car. I need to search a car using the fields Make,Model,State and City. It should display all the cars that comes under those categories. These all should be done using a datagrid in VB.Net. Can anyone please help me?


Thank You.

推荐答案

在这里,您去:
1.设计一个用户界面,您可以在其中请求所有此类搜索参数
2.接受输入并将其作为参数传递给数据库
3.编写一个简单的查询,并在WHERE子句中输入所要求的参数
4.将查询结果集返回到数据集中
5.使用gid绑定数据集并显示结果

立即尝试!
Here you go:
1. Design a UI where you can ask for all such search paramters
2. Take the input and pass it on to Database as a parameter
3. Write a simple query qith a WHERE clause with the asked paramters
4. Get the resultset of query back in a dataset
5. bind your dataset with a gid and show the result

Try it now!


这篇关于如何将DataGrid添加到ms访问?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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