To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
VBForums  

VB Wire News
Part 10 of the Visual Basic .NET 2010 Express Tutorial Complete!
How to Use the Visual Studio Code Analysis Tool FxCop
Article :: Interview with Andrei Alexandrescu (Part 3 of 3)
Introducing Visual Studio LightSwitch
Visual Studio LightSwitch Beta 1 is Available



Go Back   VBForums > Visual Basic > Visual Basic .NET

Reply Post New Thread
 
Thread Tools Display Modes
Old Nov 16th, 2006, 11:15 PM   #1
elixir_5000
Addicted Member
 
Join Date: Aug 06
Posts: 146
elixir_5000 is an unknown quantity at this point (<10)
cr help

i am using vb.net with cr 8.0

i have inserted the cr viewer in form 10 but i need the value from the textbox1 of form7 plz tell me how to get that , i need to insert it inti the record selection formula.
VB Code:
  1. Dim oapp As CRAXDRT.Application
  2. Dim rpt As CRAXDRT.Report
  3. Set oapp = New CRAXDRT.Application
  4. cr1.ReportSource = rpt
  5. rpt.RecordSelectionFormula = "{DATA2.gba}=" & val(Form7.Textbox1.Text) & ""

i have a combobox which on load of the form takes the values from the database table now waht i want is that if i press any alphabet say "k" then combobox must open and all the values in the combo box starting with k must be shown
__________________
Using VB.NET 2003/.NET 1.1

If you found a post useful then please Rate it!
Please mark you thread resolved using the Thread Tools above
elixir_5000 is offline   Reply With Quote
Old Nov 16th, 2006, 11:39 PM   #2
michaelrawi
Addicted Member
 
Join Date: Sep 06
Location: Surabaya, Indonesia
Posts: 149
michaelrawi is on a distinguished road (10+)
Re: cr help

I suggest you learn how to communicate within forms. Some users in this forum have the link on their signature.

[code]rpt.RecordSelectionFormula = "{DATA2.gba}=" & val(Form7.Textbox1.Text) & ""[code]
Form7 is an object. To use an object, you have to set a reference on it. What object did you use to declare as Form7 ? Also, you should modify it's access modifier to public (don't use dim or private)

Ex. If you have
VB Code:
  1. Public frm7 as New Form7

You can access all frm7 objects like this:
VB Code:
  1. frm7.textbox1.text
michaelrawi is offline   Reply With Quote
Old Nov 17th, 2006, 12:22 AM   #3
elixir_5000
Addicted Member
 
Join Date: Aug 06
Posts: 146
elixir_5000 is an unknown quantity at this point (<10)
Re: cr help

Quote:
Originally Posted by michaelrawi
I suggest you learn how to communicate within forms. Some users in this forum have the link on their signature.

[code]rpt.RecordSelectionFormula = "{DATA2.gba}=" & val(Form7.Textbox1.Text) & ""[code]
Form7 is an object. To use an object, you have to set a reference on it. What object did you use to declare as Form7 ? Also, you should modify it's access modifier to public (don't use dim or private)

Ex. If you have
VB Code:
  1. Public frm7 as New Form7

You can access all frm7 objects like this:
VB Code:
  1. frm7.textbox1.text

i dont know y but it does not carries the value of text box with it
__________________
Using VB.NET 2003/.NET 1.1

If you found a post useful then please Rate it!
Please mark you thread resolved using the Thread Tools above
elixir_5000 is offline   Reply With Quote
Old Nov 17th, 2006, 12:27 AM   #4
RobDog888
Super Moderator
 
RobDog888's Avatar
 
Join Date: Apr 01
Location: LA, Calif. Raiders #1 AKA:Gangsta Yoda™
Posts: 58,875
RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)RobDog888 has a brilliant future (2000+)
Re: cr help

Depending on the version of VB you have, 9.0 comes with Pro and above.
__________________
VB/Office Guru™ (AKA: Gangsta Yoda®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.

Microsoft MVP 2006, 2007, 2008, 2009, 2010
Office Development FAQ (VBA, VB 6, VB.NET, C#)
Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
Star Wars Gangsta Rap Reps & Rating PostsVS.NET on Vista (New)Multiple .NET Framework Versions (New)Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
System: Intel Core 2 Extreme Ed., 2 WD Raptor 10K RPM 150 GB HDs RAID 1, 2 GBs DDR2 667 MHz RAM, 3 Viewsonic 17" LCDs, Windows Vista RTM, IE 7, Office 2007
RobDog888 is offline   Reply With Quote
Reply

Go Back   VBForums > Visual Basic > Visual Basic .NET


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:05 AM.





Acceptable Use Policy

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.