Results 1 to 20 of 20

Populate Userform from Listbox Record

Threaded View

  1. #10
    Registered User
    Join Date
    02-24-2023
    Location
    St. Louis MO
    MS-Off Ver
    2020
    Posts
    11

    Re: Populate Userform from Listbox Record

    Hello again.

    With everyone's help I have completed all but one piece (not including formatting textboxes) Have attached file

    I still am having difficulty getting a record to update from the userform. I recieved one reply but could not get it to work

    Here is the code on the update buttion. The goal is to select a record on the listbox and then update by the corresponding text box.


    Private Sub CommandButton2_Click()
    If Me.Client.Text = "" Then
    MsgBox "No Record selected", , "Errors"
    Exit Sub
    End If
    With Sheet1.ListRows(.ListIndex + 1)
    .Range(2).Value = Client.Value
    .Range(3).Value = Officer.Value
    .Range(4).Value = Documentor.Value
    End With

    MsgBox ("Details Changed"), vbOKOnly + vbInformation, "SAVED"
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Use listbox selection to populate inputform and update record
    By DawidV in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2021, 06:17 AM
  2. VBA code to populate listbox selections for an existing record in a userform
    By mynniemoo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-13-2019, 12:50 PM
  3. Populate UserForm and then move to next record without searching
    By passman86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2013, 06:33 PM
  4. VBA - Populate Listbox based on value selected in another ListBox (On Userform)
    By raaboo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2012, 11:18 AM
  5. Populate userform listbox based on value selected in another listbox
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2012, 05:16 PM
  6. Delete record from listbox via Userform
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 09-19-2011, 03:31 AM
  7. Problem displaying single record in userform listbox from recordset
    By carpking in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-24-2009, 03:24 AM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1