Wrox Programmer Forums
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA 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
 
Old February 28th, 2007, 10:06 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default find multiples

Hi,

I'm trying to find out what the best way would be to find multiple records in a field. I'm not sure whether this is best done with a query or in vba.

I need to find every multiple record in the field and then append each multiple record,"including the other fields in the table," to a new, empty table.

Thanks for any and all help,

Dave

 
Old March 1st, 2007, 08:27 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

You need an append query. Set the conditions for the field values you want to move the records for in the query, and make sure you select all the fields in the originating table you want, and match them up with the fields in the receiving table.

Did that help?

mmcdonal
 
Old March 1st, 2007, 04:11 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! I believe thats got it.

 
Old March 5th, 2007, 12:52 PM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by mmcdonal
 You need an append query. Set the conditions for the field values you want to move the records for in the query, and make sure you select all the fields in the originating table you want, and match them up with the fields in the receiving table.
Well, I guess this didn't get exactly what I was needing. The only condition for the values is that they match another value in the field. I need to find a way to tell if two records in the same field are matches. I'm not sure how to use a query for this.

 
Old March 6th, 2007, 11:26 AM
Friend of Wrox
 
Join Date: May 2006
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. Got this one figured out. I just created a new query and selected the duplicates query wizard. That found every record for me that appeared more than once.






Similar Threads
Thread Thread Starter Forum Replies Last Post
List of node values, only once for multiples mphare XSLT 4 February 1st, 2008 03:09 PM
Where to find more? JpaulH Access VBA 2 May 3rd, 2006 06:56 AM
Open Word Doc from Access - find, find next save donaldmaloney Access VBA 1 May 25th, 2005 11:09 AM
Create a find and a find and replace in VB.NET snowy0 VB How-To 0 January 26th, 2004 07:03 PM





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