|
-
Jan 1st, 2009, 10:20 PM
#1
Thread Starter
New Member
filter report
Can anybody teach me how to filter report based on user input in textbox?I'm using vb6.I want to display results from Access database from user with same name.Thanks
-
Jan 1st, 2009, 10:28 PM
#2
Re: filter report
What reporting tool are you using?
-
Jan 2nd, 2009, 08:28 AM
#3
Thread Starter
New Member
Re: filter report
I use dataenvironment and datareport to create my report.
-
Jan 2nd, 2009, 04:09 PM
#4
Re: filter report
You just have to do the filtering on the datasource sql, use a WHERE clause.
-
Jan 3rd, 2009, 06:47 AM
#5
Thread Starter
New Member
Re: filter report
I tried using a SELECT query but when i run it,there will be error.The error is:The parameter Text1.text has no default value
-
Jan 3rd, 2009, 07:04 AM
#6
-
Jan 3rd, 2009, 11:16 PM
#7
Thread Starter
New Member
Re: filter report
Select * from Data where Name=Text1.text
-
Jan 4th, 2009, 05:24 AM
#8
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • 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 i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jan 5th, 2009, 03:04 PM
#9
Re: filter report
You should setup a parameter in the DataEnvironment, check out the attachment.
You can set the parameter at runtime,
Code:
deCropbyuser.Commands("Command1_grouping").Parameters("param1").Value = frmUrange!txtStart
deCropbyuser.Commands("Command1_grouping").Parameters("param2").Value = frmUrange!txtEnd
rptCropbyuser.Show vbModal
Last edited by wes4dbt; Jan 5th, 2009 at 03:10 PM.
-
Jan 5th, 2009, 10:01 PM
#10
Re: filter report
When working with DataReports you may want to have a look at this MSDN article that discuss it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|