Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 14th, 2004, 11:00 AM
Ben Ben is offline
Authorized User
 
Join Date: Jun 2003
Location: , , United Kingdom.
Posts: 75
Thanks: 0
Thanked 0 Times in 0 Posts
Default Append Query Criteria

Hi All,

I need to create an append query to append data from Table A to Table B, the data I want to append from Table A will have a date after the latest date in Table B.
I have created an append query to append all fields from Table A to Table B with a criteria set on the field "Row_Date" >Max([tableb]![rowdate]), however I get the error message cannot have aggregate function in where clause.
Whats the best way round this?

Thanks in advance
Ben
  #2 (permalink)  
Old January 21st, 2004, 07:24 AM
Authorized User
 
Join Date: Jun 2003
Location: Swansea, , United Kingdom.
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Ben,
I think you can do this by setting the criteria in the Row_Date field to >#??/??/????# entering the date from which the new data commence. This should avoid the aggregate function.
Barry



Similar Threads
Thread Thread Starter Forum Replies Last Post
Append Query bright_mulenga Access 1 January 3rd, 2007 01:33 PM
Append Query Cybersurfer Access 1 February 13th, 2006 01:02 PM
append query? bph Access 2 November 23rd, 2004 12:44 PM
Query Criteria Clive Astley Access 4 March 25th, 2004 03:27 AM
append query stoneman Access 2 November 12th, 2003 09:17 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.