Results 1 to 7 of 7

Thread: [Resolved] how to modify a textbox value inside a report

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Resolved [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.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: how to modify a textbox value inside a report

    Use this procedure in the Report class.
    VB Code:
    1. 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 PostsVS.NET on Vista Multiple .NET Framework Versions 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 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

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    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

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions 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 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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    Re: how to modify a textbox value inside a report

    thanks rob
    your suggestion has solved my problem.
    thanks for your help

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Mar 2005
    Posts
    158

    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) ?

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions 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 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
  •  



Click Here to Expand Forum to Full Width