|
|
#1 |
|
Addicted Member
Join Date: Aug 06
Posts: 146
![]() |
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:
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 |
|
|
|
|
|
#2 |
|
Addicted Member
Join Date: Sep 06
Location: Surabaya, Indonesia
Posts: 149
![]() |
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:
You can access all frm7 objects like this: VB Code:
|
|
|
|
|
|
#3 | |
|
Addicted Member
Join Date: Aug 06
Posts: 146
![]() |
Re: cr help
Quote:
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 |
|
|
|
|
|
|
#4 |
|
Super Moderator
Join Date: Apr 01
Location: LA, Calif. Raiders #1 AKA:Gangsta Yoda™
Posts: 58,875
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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 Posts • VS.NET on Vista (New) • Multiple .NET Framework Versions (New) • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 |
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|