|
-
May 19th, 2005, 06:45 AM
#1
Thread Starter
Addicted Member
[Resolved] how to modify a textbox value inside a report
hi, i wish to ask,
how is it to modify a textbox value which is located in a report?
i guess my problem is, how to accessing those control from various location and to modify them from various location. anybody who got experience plez light me a little bit thanks in advance.
Last edited by asmdev; May 20th, 2005 at 05:01 PM.
-
May 19th, 2005, 11:44 AM
#2
Re: how to modify a textbox value inside a report
Use this procedure in the Report class.
VB Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
What do you mean to modify them from various locations?
If your not running the report then why modify it?
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 
-
May 19th, 2005, 01:21 PM
#3
Thread Starter
Addicted Member
Re: how to modify a textbox value inside a report
thanks rob
let me desc my problem a byte, so that you could see if there any wise alternative you wish to suggest to this problem.
i got a query which dumps out a list of student by their registration date.
so, i create a report based on this query and i put this (below)
[Please insert the registration date you wish to search]
on the registerationDate field criteria.
so, when user run that report, it would prompt the user to insert a date so that it would prints out only the list for that particular day.
what i intend to do is,
1. to put the date (the one the user key in) into the report so that after print out, they know the list are based on what searched registration date.
hope this would make more easier for you to help on this topic.
thanks in advance
-
May 19th, 2005, 02:03 PM
#4
Re: how to modify a textbox value inside a report
Yes, allot better now. 
You can pull the field "[Please insert the registration date you wish to search]" into your report from the field chooser in the report design view mode.
Then set the textbox's controlsource to that field.
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 
-
May 20th, 2005, 05:01 PM
#5
Thread Starter
Addicted Member
Re: how to modify a textbox value inside a report
thanks rob
your suggestion has solved my problem.
thanks for your help
-
May 20th, 2005, 05:17 PM
#6
Thread Starter
Addicted Member
Re: [Resolved] how to modify a textbox value inside a report
well, just wanna know, let say if the textbox is not bound to any data source, is that still possible for us to put some text into that textbox (in report) ?
-
May 20th, 2005, 06:11 PM
#7
Re: [Resolved] how to modify a textbox value inside a report
Yes, in post #2, you can set the value for an unbound textbox to ???
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 
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
|