Results 1 to 3 of 3

Thread: [2005] Inpput box

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2006
    Posts
    74

    [2005] Inpput box

    Hi. I've several comboboxs in my form, and i made a simple fuction that in case the user enters a value in the combobox, wich is not on the list it adds that value to the database. The problem is the database table has 3 values, and the user only inserts one(the value in the combobox). I was wondering if there is any kind of input prompt box in VB that allows the user to enter the missing values, or do i've to create a new form for this?

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: [2005] Inpput box

    The InputBox returns a string.
    You can use it and ask the user to enter in the missing fields separated by some special character, i.e. "," or ";" or whatever that won't be part of the input fields. After the user click OK on the inputbox, you grab the string and split it.
    The other more "professional" approach is to build your own inputbox as you already said it.

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: [2005] Inpput box

    If you want to use the InputBox method (not recommended) you must make sure to handle empty input as the user might click on cancel
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

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