Consulting

Results 1 to 3 of 3

Thread: Solved: Passing Value back to userform

  1. #1

    Solved: Passing Value back to userform

    Good day to you all

    I have, what I'm sure is, a simple problem with a userform.

    Everything works as it should, a user clicks on add new, and a blank userform is presented. They fill in the required fields (all except the log no), click save and the data is stored on teh hidden worksheet "Data" on teh next empty row.

    However, when the user clicks save I would like the Log no to be displayed in the relevate text box.

    I'm sure this is probably only one or two lines of code, but it's been driving me mad all day trying to figure it out.

    If anyone could help I'd be most grateful.

    Sample workbook attached

    Thanks in advance for the help
    Attached Files Attached Files

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Add

    [vba]

    Me.txtLogNo.Text = mcRecord[/vba]

    before the save procedure exit.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    Thanks XLD, as always you are a great resource.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •