+ Reply to Thread
Results 1 to 7 of 7

Data Entry on Form

  1. #1
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Data Entry on Form

    I have managed to write some code to allow me to enter data via a form, but I would like to be able to update existing records and have the text boxes synchronise to the data sheet if the name is picked out from the combo.

    Not sure if I should use a combo or list box. I have attached the file.


    Thanks

    Vetequk
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Data Entry on Form

    I've used listboxes in combination with dynamic named ranges.

    See the attachement and tell me what you think.
    named ranges e.g
    CompNo: =OFFSET(Sheet1!$A$1,1,0,COUNTA(Sheet1!$A:$A)-1,1)

    Piece of code:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Data Entry on Form

    Also , see the DataBaseForm example

    http://excel-it.com/vba_examples.htm
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Re: Data Entry on Form

    I was looking for a type of auto fill, that when you commence typing the name the list box would give you all the options. then if you clicked one of the names in the list box you could just amend that record but if the name was not already in the data base it would add it as a new record.

    thanks

    Vetequk

  5. #5
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Data Entry on Form

    That is a std property of a COMBOBOX.

    Replace all the textboxes with comboboxes.

  6. #6
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Data Entry on Form

    That is a std property of a COMBOBOX.

    Replace all the textboxes with comboboxes.

    To test you'll need to extnd the single character values to multple character values
    2 Wrong, 200323 OK

  7. #7
    Registered User
    Join Date
    05-21-2008
    Location
    London
    MS-Off Ver
    2007
    Posts
    66

    Re: Data Entry on Form

    Thanks I will try that

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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