如何在vb 2005中搜索记录并将其打印在水晶报表中 [英] How to search a record in vb 2005 and print it in a crystal report

查看:81
本文介绍了如何在vb 2005中搜索记录并将其打印在水晶报表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将MS Access数据库与VB 2005连接起来,我需要搜索确切的学生ID并查看有关该学生ID的数据行.之后,我需要将该记录添加到水晶报表中.我该怎么办?

I have connected an MS Access database with VB 2005 and I need to search for an exact Student ID and view data row about that student ID. And after that I need to add that record into crystal report. How can I do that?

推荐答案

很难为您描述一个确切的答案,因为您实际上在同一问题中要求太多东西.我可以通过为您描述步骤来帮助您-您可以在Internet上搜索详细信息.

1)尝试使用与您的学生ID匹配的where子句编写查询.
2)如果未返回任何内容,则说明您没有一个匹配项.
3)如果返回了一些数据,则需要在水晶报表中显示它.
4)尝试掌握有关Crystal Report的一些教程.为您的学生证和其他数据设计报告.
5)使用查询返回的内容填充报表的数据源.那应该显示适当的报告.
It is difficult to describe an exact answer for you as you are actually asking for too many things in the same question. I can try to help by describing the steps for you - you can search on the internet for details.

1) Try to write a query with a where clause that matches your student id.
2) if nothing is returned you dont have a single match.
3) If there is some data returned, you will need to display this in the crystal report.
4) Try to get hold of some tutorials on crystal report. Design a report for your student id and other data.
5) Populate the datasource for the report with whatever is returned by your query. That should display the appropriate report.


这篇关于如何在vb 2005中搜索记录并将其打印在水晶报表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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