+ Reply to Thread
Results 1 to 2 of 2

Participant Contact Database: Help with Search and Editing Data Entries

Hybrid View

  1. #1
    Registered User
    Join Date
    01-08-2020
    Location
    Fargo, ND
    MS-Off Ver
    MS Office 2016
    Posts
    1

    Participant Contact Database: Help with Search and Editing Data Entries

    Hello Everyone,

    I am super new to the VBA and programming world (i.e. this is my first time ever putting together a project and I have ZERO background in it. I am a Counselor by trade, so be gentle). PLEASE HELP!! I have reached out to my the Computer Science program at my local university and NO ONE has even responded to me. I am in a time crunch now to get this set up, so our research lab can go paperless and enter the 21st century!

    My task: to create a database that houses research participant information with a new entry form and the capacity to search and edit information that is already entered in the spreadsheet (any columns, any text, as we can't have duplicate entries and as participants come back for multiple studies, and/or their contact information changes). Note: It is an infant research lab and it is of utmost importance to search all possible matches because sometimes, although infrequently, an infant dies and we DO NOT want to be contacting those parents to participate in studies.

    So far, I have created a form that populates new entries; however, I cannot figure out the search function and edit (with SAVE button) information that is found. The search isn't working and highlighting a certain contact in the spreadsheet does not populate the data in to the form.

    PLEASE HELP!! I have been watching hours worth of Youtube videos, all coding this differently, and so far, none of them are working. I will attach my Excel Macro Book. There is no Real Data yet in the spreadsheet.

    Additional Inquiry:
    Sidenote: I would like the ID # spot to auto-populate with a new sequential # each time a New Entry is added. It was working for a hot second, then it stopped.

    Thank you in Advance!!!!
    Attached Files Attached Files

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,410

    Re: Participant Contact Database: Help with Search and Editing Data Entries

    Hi.
    Have a play around with the attached, the listbox acts as the 'search' platform.
    The 'unique' id is created using 'forename' initial + 'surname' initial + two digit random number.
    To enter 'new' person first 'CLEAR' form > enter details > press 'NEW' > data is stored > list sorted and added to listbox.
    To 'update' or 'delete' simply chose from listbox and carry out actions.
    I noted although your data was in a 'Table' your coding used 'ranges' to add new detail and the range find was restricted to 65,000 ???
    Using 2016 and .xlsm you can use 1m + rows of data, if you use 'Table' features the tables can be increased/decreased without need to keep finding the range size.
    Hopefully there is enough self-explanatory code to aid your initial save/update/delete query.
    Lastly use 'Option Explicit' as your very first line of code, this will help you id missing variables when you debug.
    happy coding.
    torachan.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Prevent Duplicate Entries when Editing Data using Userform
    By farhadj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-05-2017, 01:05 PM
  2. Made a contact database that I cannot share.
    By sriggins in forum Excel General
    Replies: 1
    Last Post: 01-20-2015, 07:22 PM
  3. Made a contact database that I cannot share.
    By sriggins in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-20-2015, 07:20 PM
  4. Can't figure out how to graph 2 sets of data for each participant.
    By tr71 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 04-06-2013, 04:34 AM
  5. [SOLVED] Access Template Contact Management Database
    By hecgroups in forum Access Tables & Databases
    Replies: 16
    Last Post: 03-29-2012, 02:44 PM
  6. Moving Contact Database
    By SomeoneNamedMichael in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-14-2011, 11:08 PM
  7. [SOLVED] extracting contact info to a database
    By gordie in forum Excel General
    Replies: 1
    Last Post: 01-15-2005, 11:06 AM

Tags for this Thread

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