+ Reply to Thread
Results 1 to 4 of 4

A few data entry form questions

  1. #1
    Registered User
    Join Date
    06-16-2012
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    2

    A few data entry form questions

    Good evening to all.

    Im doing my first data entry form using visual basic forms, its going pretty well and for the most part its working as i need to.

    But a critical issue I can't figure out is if its possible to edit previous entries. I'll explain:

    I work on a library and I need to keep a record of which books are given to which people, to consult in the library reading room, so i have a few combo boxes for all the users types and all, then a simple text box for the book id number. Then i need to add two more field, one is the time stamp of the moment i provide the book to the user, and the other is the time stamp of the moment the user returns the book.

    I can easily add the first one using simply .Value = Format(Now, "hh:mm:ss"), but thats where the easy parts end.

    I figure i need to add an ID column to identify the entries, then somehow call that id number to retrieve all the fields data and only change the fHoraOut field and save again (thats what i used to do when I made some forms using php and mysql)... i hope im making some sense here... anyway here is my code so far:

    Please Login or Register  to view this content.
    and the columns i have are:
    Please Login or Register  to view this content.
    the "Observaciones" one is to be filled by me in case i need to manually to the worksheet.

    Any help would be greatly appreciated.

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

    Re: A few data entry form questions

    Lok at the DatabaseForm example here
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: A few data entry form questions

    as an option you can double click in col (what column you want) to add the time
    Please Login or Register  to view this content.
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  4. #4
    Registered User
    Join Date
    06-16-2012
    Location
    Argentina
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: A few data entry form questions

    Quote Originally Posted by royUK View Post
    Lok at the DatabaseForm example here
    Thanks! I looked at it and it seems pretty much to be what I need, the ability to search and amend entries is exactly what i need.

    Now I have to figure out how to add a few comboboxes to it.

    Thank you very much again, this has pointed me into what i think is the right direction.


    and to john55, thanks for your answer but i don't seem to understand what you meant.

+ 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