Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 28th, 2007, 10:06 AM
Friend of Wrox
 
Join Date: May 2006
Location: Jonesboro, AR, USA.
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

Reply With Quote
  #2 (permalink)  
Old March 1st, 2007, 08:27 AM
Friend of Wrox
Points: 9,611, Level: 42
Points: 9,611, Level: 42 Points: 9,611, Level: 42 Points: 9,611, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2004
Location: Washington, DC, USA.
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
Reply With Quote
  #3 (permalink)  
Old March 1st, 2007, 04:11 PM
Friend of Wrox
 
Join Date: May 2006
Location: Jonesboro, AR, USA.
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks! I believe thats got it.

Reply With Quote
  #4 (permalink)  
Old March 5th, 2007, 12:52 PM
Friend of Wrox
 
Join Date: May 2006
Location: Jonesboro, AR, USA.
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.

Reply With Quote
  #5 (permalink)  
Old March 6th, 2007, 11:26 AM
Friend of Wrox
 
Join Date: May 2006
Location: Jonesboro, AR, USA.
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 11:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.