Results 1 to 3 of 3
  1. #1
    SSgtJ is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    Jan 2010
    Posts
    4

    Query From Newest Date

    In a nutshell I am trying to update fields in table 2 with information in table1 from a date specified in table 1
    I am attaching 2 screen shots of the tables. I had to hide alot of fields due to the type of info (sorry) but you will get the gist.
    Table 1 shows Each machines information as it stands currently. So Asset number is a unique house number (like a serial for our own records) and location is of course where it is and serial number is self explanatory as well.
    this table is imported daily from a corporate database that I cannot change or alter in any way. This Corporate database gets updated with info we tell them. So our system (table 2) should reflect the changes made. This is not always the case.
    Table 2 (the 2 fields are asset location and the business day) houses the daily financial records by Asset#. So as you can see I just copied a few in this table for the visual. So location 010101 has so far this month 19 records. Now if you notice on the 5th the asset number changed. But if you look at table 1 location 010101 has a start date (start date is the start of a new asset) of 01/03/2010. So table 2's info should reflect that. Example 3 illustrates that.


    I need table 2's Asset field to show table 1's asset field from the start date in table 1. I feel like I am just rambling here and not making any sense. I hope the info I have given is somewhat decipherable. Due to the nature of the info it is hard to send the actual tables. I apologize again.

  2. #2
    SSgtJ is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    Jan 2010
    Posts
    4
    I apologize but I have figured out my own question. I was looking at it way too hard. I am fairly new so please forgive me. I just needed a greater than or equal to added in my statement.

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    It is better if you are able to solve your own problem anyway. You learn a lot more that way and post back with your solution teaches others. How about following the link in my sig and marking this thread as Solved?

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

Similar Threads

  1. Date query
    By Philangr8 in forum Queries
    Replies: 7
    Last Post: 10-06-2009, 04:37 PM
  2. Date Query
    By drako28 in forum Queries
    Replies: 2
    Last Post: 09-10-2009, 11:11 AM
  3. Replies: 2
    Last Post: 07-31-2009, 06:56 AM
  4. Compare date in a sql query
    By access in forum Forms
    Replies: 2
    Last Post: 06-17-2009, 12:57 PM
  5. Need to set date in query for automation
    By Valeda in forum Queries
    Replies: 0
    Last Post: 06-07-2006, 06:41 AM

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