Results 1 to 4 of 4
  1. #1
    cooneyge is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    3

    Populate field with date msg box

    Hi there,

    I have an DB with many data tables. The data tables have the same characteristics, being Field Names and Data Types. They do however have different amounts of rows of data in them.

    The output is required to have a field with every row in each table to be the previous month end date.

    I would like to have a message box pop up where I can enter the date (this is the easiest solution I can think of) and this populates every table in in the data base.

    Currently, I have an Update Query for table X, which has the Update To: [Enter Month End Date in format dd/mm/yyyy:]. This works fine for this one table but i am not sure how to replicate this across the remaining tables.

    Is it possible to have an update query that will update all of the tables I request knowing each table has a different number of rows?



    Thanks,
    George

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Your update is possible, but, what is the nature of these other tables?
    say 1 table is tClientHist. And you update dates in the history. I don't see what other table needs updating this way.
    ALL client history is in 1 single table, not spread across many.
    please explain.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    If all your tables are identical, why are you storing them as separate tables? Iterating through tables to update them is much more complex than if all the data is in a single table where you can likely perform the update you want with a single query.

  4. #4
    cooneyge is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2013
    Posts
    3

    Thumbs up

    Quote Originally Posted by rpeare View Post
    If all your tables are identical, why are you storing them as separate tables? Iterating through tables to update them is much more complex than if all the data is in a single table where you can likely perform the update you want with a single query.
    Thanks guys,
    I am going the combined table option. Thanks for your help. This works now.

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

Similar Threads

  1. Replies: 2
    Last Post: 01-08-2013, 08:49 AM
  2. Replies: 7
    Last Post: 11-28-2012, 01:41 PM
  3. Auto populate date field in payment table
    By jeffrey.ccs in forum Access
    Replies: 4
    Last Post: 11-08-2012, 04:44 PM
  4. Replies: 5
    Last Post: 06-22-2011, 08:47 PM
  5. Replies: 4
    Last Post: 09-02-2010, 02:11 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