+ Reply to Thread
Results 1 to 2 of 2

Create new record via msgBox option if Search function return NULL/zero value

  1. #1
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Create new record via msgBox option if Search function return NULL/zero value

    Hi all,

    Would appreciate your help!

    I have a Search function on my UserForm that lists all possible matches/suggestions in a ListBox. When I double click the desired record in the ListBox, it populates my UserForm with that specific DB record.

    This is where I need your help! a)When there is NO possible match, i.e. the ListBox is empty, I would like to create a new record via a msgBox yes/no option. b)Have the option to create a new record, without using the search, or when there are possible matches.

    I was thinking in the lines of:


    Please Login or Register  to view this content.

    This is the code for my search textBox:

    Please Login or Register  to view this content.

    This is the code that allows me to select a record from my ListBox:

    Please Login or Register  to view this content.
    I am not to sure how to integrate the code, but THINK it should most probably be part of the Search textBox code....

    Thanks a lot!
    Attached Files Attached Files

  2. #2
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Re: Create new record via msgBox option if Search function return NULL/zero value

    Hi all, any help?

+ 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. Replies: 0
    Last Post: 06-16-2013, 10:46 AM
  2. [SOLVED] Userform msgbox option to return to parent form
    By Hammer_757 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2012, 02:19 PM
  3. How do I get a Function to return Null?
    By Peter Chatterton in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-18-2006, 05:50 AM
  4. Can a function return a Null (blank ) value? Maybe a custom functi
    By colin_e in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2006, 10:40 AM
  5. [SOLVED] how do i create search option in ecxel
    By abhilok in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-08-2006, 03:00 PM

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