Results 1 to 2 of 2

Thread: Inserting input into a pre-populated field..?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2008
    Posts
    1

    Red face Inserting input into a pre-populated field..?

    Hey guys

    I'm not 100% new to VB, but I'm VERY rusty... I took a vb course back in college years ago..

    But anywho. I'm not new to forums but I took a look around and I'm not sure if this is in the right area. If its not, I apologize, and mods please move it.. but here's my question.

    I've been looking around for code that will allow me to have a sort of "fill-in-the-blank" template that will create a paragraph of text and fill in certain spots with values entered in by the user. For example, I work at a government funding agency and we have to incorporate appropriate comments on cases.

    If I have text boxes for, "application id", and the date it was received, is there a way to populate a text box on the bottom of the app that says something like:

    "userstateworker1 received [application id] with the received date of [date].."

    and so on.. I attached what I'm working with so you kind of have an idea.

    Thanks for your help, if any is received. and if not, thanks for taking the time to read guys.
    Attached Files Attached Files

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Inserting input into a pre-populated field..?

    Your form looks like it's VB.NET, so I'll move this to the VB.NET forum.

    You've only given the codebehind file for your form, so we have no way of knowing what your form looks like. However, you would do something like this
    Code:
    TextBox1.Text = userid & " received [" & applicationid & "] with the received date of [" & receivedDate & "]"
    Just an example of course, you need to work on creating those variables or populating their values from whatever your source of data is.

    Oh, and welcome to the forums.

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