Results 1 to 5 of 5
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    Inventory Logging Design

    Hello,



    I have been assigned a project where multiple reps will be logging in their inventory and the time they have completed it. For example, I want the tool to auto assign the records to the reps, once the reps click the "Next Record" button it will be time stamped and then when they press "Save" the time will be saved. And I'm guessing I need the database to be split so all the reps get front end copies with one backend linked. The issue I am thinking about having is that I need the database to be refreshed constantly after any user time stamps or updates the database on the front end so that another user can see the update. How should I go about doing that? So the Admin can see how many are completed and at what times.

    Thanks

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    all you need do is, in the table design ,the SaveDate field you use,
    set the DEFAULT = NOW()

    then it always sets the time to the moment they save the record. It ONLY saves for new records. If they modify the record , it does not change the time.
    This is what you wanted correct?
    (if you want edit time, then you will need code to update the SaveDate field)

  3. #3
    Join Date
    Apr 2017
    Posts
    1,679
    I had an issue with default values in tables in past - when user canceled new record, records only with autonumber and date remained in table. So instead of default values in tables, I now prefer
    a) in case exact time (hh:mm:ss) must be registered, BeforeUpdate event sets value for hidden bound form control to current time;
    b) in case a current date must be registered, a default value for bound form control (may be hidden) is set to =NOW();

  4. #4
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283
    Okay thanks I will try that out and see how it goes. But is it going to refresh the backend immediately so that another user can see from another copy of the front end what was just saved?

  5. #5
    Join Date
    Apr 2017
    Posts
    1,679
    Quote Originally Posted by MTSPEER View Post
    But is it going to refresh the backend immediately so that another user can see from another copy of the front end what was just saved?

    Another user never sees change immediately - he must do something in his front-end that causes form(s)/control(s) to be refreshed/requeried.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. How to record time logs after logging in and logging out
    By annayanagi014 in forum Programming
    Replies: 1
    Last Post: 02-18-2015, 07:52 AM
  2. Inventory Database Design
    By dylcon in forum Database Design
    Replies: 49
    Last Post: 06-07-2013, 11:29 AM
  3. Inventory Design Question
    By emmetm1 in forum Database Design
    Replies: 1
    Last Post: 11-12-2012, 01:50 PM
  4. Stock Inventory Design
    By plowe in forum Database Design
    Replies: 3
    Last Post: 09-06-2012, 05:47 PM
  5. Inventory Design
    By rts in forum Database Design
    Replies: 7
    Last Post: 04-18-2012, 12:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums