Wrox Programmer Forums
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 10th, 2006, 12:09 AM
Friend of Wrox
 
Join Date: Jan 2006
Posts: 180
Thanks: 1
Thanked 1 Time in 1 Post
Send a message via ICQ to dpkbahuguna Send a message via MSN to dpkbahuguna Send a message via Yahoo to dpkbahuguna
Default Need Help Urgently

I have to use Data Report which has to take input from the TextField which is embedded with VB form..

means i have to use a command in command object like this..

select * from TABLENAME where CUSTNAME = ?;

Can somebody help me..

How can I do this and what wiil be source of that?

Help needed urgently...

Thanks for any suggestion

DPK..
__________________
DPK..
 
Old August 10th, 2006, 01:26 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

hi deepu

write the same query in the Command object in the designer
and at te run time, pass the value for ur parameter

Dim de As New DataEnvironment1, rpt As New ReportName


If de.Connection1.State = 1 Then
  de.Connection1.Close
End If
de.Connection1.ConnectionString = "Write connectioun string here"
de.Connection1.Open

Set rpt.DataSource = de
de.CommandName
rpt.DataMember = "CommandName"
rpt.Show vbModal

de.Connection1.Close


i hope it will help

cheers

Ashu :)




 
Old August 10th, 2006, 01:29 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 224
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to ashu_from_india Send a message via Yahoo to ashu_from_india
Default

oops...i forgot to pass the parameter

de.CommandName TextBox1.Text








Similar Threads
Thread Thread Starter Forum Replies Last Post
JMeter: Need help Urgently motionless BOOK: Expert One-on-One J2EE Design and Development 0 February 19th, 2008 12:16 PM
Urgently Need Help humayoo Beginning PHP 2 October 16th, 2007 02:39 PM
urgently need help sumeghagupta .NET Web Services 1 October 5th, 2004 11:38 PM
Urgently need help... scott Access 23 October 18th, 2003 09:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.