Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics 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 April 28th, 2008, 04:48 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default Urgent help

Hi All

I have one problem.My crystal report has diffrent database fields.It works fine.

But i want to change "detail section" when i select value from combo box.

means my last field of detail section is "jan from student table".when i select value as feb from combo box,i want feb values from database in "detail section"

Is it possible?
if possible,how can i do that?
pls if u have any code for reference,pls help me as early as possible.

Thanks
monika

 
Old April 28th, 2008, 06:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

HI there...

If I understand correctly, you just want to run a diferent query (or at least a diferent where clause), are you passing the parameters to crystal or just building the recordset on the program side and passing it (or datatable?, You don't specify any language).

Anyway, just add a where clause and show the data you need..

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old April 30th, 2008, 02:04 AM
Authorized User
 
Join Date: Jun 2006
Posts: 88
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Thanks for your kind help.But I have one problem.I am new in crystal report.I just want to know that how to run a different query.I pass the parameters as "year". when i pass "2006",it shows 2006 records.but i want to pass another parameter like month,when i pass "jan" as parameter at that time my detail section has to changed means if i pass "jan" at time my detail section was "tablename.jan" and when i pass "feb" at time my detail section has to "tablename.feb".

how can i do that?
if possible,pls reply as early as possible.
if u have any code,pls send me.

Thanks
monika



 
Old April 30th, 2008, 08:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

I don't know how your table is defined, but for sure crystal wants a specific parameter for a specific field. You didn't answer any of my prior question, so I still don't know how are you working with this, but another way to do this is to supply all parameters, or just pass the all the parameters you need (If I remember ok, you can make crystal to avoid parameters is there are blanks.)

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old January 10th, 2009, 04:48 PM
Registered User
 
Join Date: Aug 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to gludhani
Default Oh I got it

Hi,

I dont have the answer for this question, but I got it now. You got a job in Apr, so you ABORTED all the plans and carried on.






Similar Threads
Thread Thread Starter Forum Replies Last Post
urgent deb_kareng ASP.NET 2.0 Professional 1 August 13th, 2007 07:29 AM
it's urgent deb_kareng ASP.NET 2.0 Professional 3 August 7th, 2007 07:40 AM
urgent help yash_coolbuddy_forindia BOOK: Wrox's ASP.NET 2.0 Visual Web Developer 2005 Express Edition Starter ISBN: 978-0-7645-8807-5 1 May 7th, 2007 08:40 AM
urgent???????????? nsr35 Beginning VB 6 1 October 3rd, 2005 10:57 AM
urgent ??????????????? nsr35 Pro VB Databases 0 October 3rd, 2005 04:53 AM





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