Welcome to Dream.In.Code
Getting VB Help is Easy!

Join 136,413 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 2,449 people online right now. Registration is fast and FREE... Join Now!




Working with DataReports on VB

 
Reply to this topicStart new topic

Working with DataReports on VB, How to display the current data found on the form

marckiestar
15 Oct, 2008 - 03:55 AM
Post #1

New D.I.C Head
*

Joined: 21 Aug, 2007
Posts: 21



Thanked: 1 times
My Contributions
[b]Hi! I only knew how to display all records on my database.

But this time, I wanted to display on my data report only the current record found on my form.

How will I do It?
Can you give me sample code or systax.

for example I have this record(current) on my form from my database:

Customer ID : 12
Last Name: Doe
First Name: John
Middle Name: Smith

How will I display only this record on the data report without displaying all the contents of my database?
User is offlineProfile CardPM
+Quote Post

thava
RE: Working With DataReports On VB
15 Oct, 2008 - 04:50 AM
Post #2

D.I.C Regular
Group Icon

Joined: 17 Apr, 2007
Posts: 442



Thanked: 18 times
Dream Kudos: 50
My Contributions
its simple make a parameter using the ? in the sql query

then populate the command the the required criteria

now this will show your required record only

for further details follow this link

http://www.daniweb.com/forums/thread92031.html

This post has been edited by thava: 15 Oct, 2008 - 04:58 AM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 12:37PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month