Results 1 to 7 of 7
  1. #1
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21

    Signing in

    Hello,

    ive got an update query that works perfect and is run on a button on my form which enters the current time of when it is clicked onto its related field on the form displaying a list of customers and their appointment.

    i was wondering if anyone knew how when a customer has been signed in and out and both fields are filled, how i could make this record be removed from the form?
    because what is happening at the moment is people sign in and out and if i were to have a lot of customers this strategy would be really weak as the records would remain in place and the user would have to scroll down constantly to find their name from the list of appointemts ( displayed in order so easy to find but just lengthly)



    Can someone give me some advice
    thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    Apply filter criteria to the form Recordset. Requery the form after this field value is entered.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21
    hiya could you explain in more detail if possible? like what would i need to write for the criteria? thakns

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    Don't know your data structure.

    Maybe something like:

    Form RecordSource:
    SELECT * FROM tablename WHERE DateTimeOut Is Null;

    Then code in DateTimeOut textbox AfterUpdate event:
    Me.Requery
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21
    im really rubbish with access.. im not understanding

    But i have 2 seperate update queries so im not sure what goes where?

    The form RecordSource:
    SELECT * FROM tablename WHERE DateTimeOut Is Null; -------------------> my sign in update query

    Then code in DateTimeOut textbox AfterUpdate event:
    Me.Requery -----------------------------> where does this go? on my form where the button is??






  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,963
    That is not an UPDATE query - it is just a SELECT query that would be the RecordSource of a form.

    Have you ever built any VBA code procedures? Need to learn how to code in Access - either macros or VBA or both. Start with https://support.office.com/en-us/art...0-DAB7C75CBE0C

    The Me.Requery code would be in textbox AfterUpdate event. Select the textbox on form in Design View. Look at the Events tab of Property Sheet. Find AfterUpdate event and select [Event Procedure]. Click the ellipsis (...) to open the VBA editor. Type code into the procedure.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    ictcrystal is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Mar 2015
    Posts
    21
    hey..
    what i mean is the sign in and sign out fields already run update queries that i previously made..

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

Similar Threads

  1. Signing an Access Database
    By mmcgrath in forum Access
    Replies: 4
    Last Post: 07-18-2012, 12:46 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