Results 1 to 4 of 4
  1. #1
    combine21 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    31

    Yes/No


    I have a query in which when the check box is selected, that record it is automatically sent to another query. Is is possible to to put the date in which it was sent to the second query in the second query in another column?

  2. #2
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    The record is never actually "sent to a query". A query is simply a view of records in an underlying table.

    Are you perhaps referring to an append query which adds records to another table?

  3. #3
    combine21 is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Sep 2010
    Posts
    31
    I guess? Im still new at all this stuff. I need for the date in which the yes/no is selected to appear in the appended query.

  4. #4
    pdebaets is offline Competent Performer
    Windows Vista Access 2010 (version 14.0)
    Join Date
    Jul 2010
    Location
    Los Angeles
    Posts
    235
    OK, that's different. You need another field in your table (the same table that holds the Yes/No field). You can name this new field "DateSelected" or some such thing. The data type should be "Date/Time". Add the DateSelected field to the same form as the Selected check box (I assume you have the Selected checkbox on a form, yes?) Then in the AfterUpdate event procedure of your Yes/No checkbox put the following code:

    DateSelected = Date()

    Now in your query, include DateSelected along with your Yes/no checkbox field in the list of fields selected.

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

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