473,401 Members | 2,127 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

ACC2K - Duplicate OutPut

MindBender77
234 100+
Hello all,
I get an error when trying to run an append query that states duplicate output to a field name. I think because I'm trying to append records to a table that is already in the use. Below is the SQL from the query. Thanks in advance.

Bender

Expand|Select|Wrap|Line Numbers
  1. INSERT INTO PillweightArchive ( [DRUG NAME], NDC, [Pick Method], Single_Label, [DRUG NAME] )
  2. SELECT DISTINCT Every_med.Drug, Every_med.NDC, Every_med.Pickmethod, Every_med.[Single Label], PillweightArchive.[DRUG NAME]
  3. FROM Every_med LEFT JOIN PillweightArchive ON Every_med.NDC = PillweightArchive.NDC
  4. GROUP BY Every_med.Drug, Every_med.NDC, Every_med.Pickmethod, Every_med.[Single Label], PillweightArchive.[DRUG NAME]
  5. HAVING (((PillweightArchive.[DRUG NAME]) Is Null))
  6. ORDER BY Every_med.Drug;
  7.  
May 21 '08 #1
2 1548
MindBender77
234 100+
Ok, the problem is solved. I didn't realized I had duplicated columns, Drug Name, and didn't realize access had a problem with that....

Bender
May 21 '08 #2
NeoPa
32,556 Expert Mod 16PB
Well Bender, it would be hard to conceive of a scenario where an RDBMS would NOT get confused when trying to add data to a field that shares its name with another field in the same dataset ;)
May 22 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: thomas | last post by:
I'm building a guitar website which uses XML and XSLT. http://www.madtim67.com/guitar/index.html You can search either by artist or song. I used the <xsl:if test="contains(artist ,$text1)"> line...
2
by: ss | last post by:
I need to duplicate the filestream objects. The file pointer in two objects should always be in sync. How can we do it? Openeing same file in two different fstream objects is not working. The file...
4
by: FangQ | last post by:
hi I am very new to mysql. I have a question about using the "on duplicate update" clause with insert command. my table "data" has two columns, field1 and field2, where field1 is the index...
6
by: sternr | last post by:
Hey, Is there a way to duplicate a certain string multiple times? I.E: I've got the following string: "<0>" and would like to create: "<0><0><0><0>". Is there a CLR API for this behavior or...
4
by: uche | last post by:
can someone please look at this code and decipher it for me....i've been stressed by it! ============================================= //disk.cpp #include "disk.h" #include <cstdlib> #include...
2
by: Hariny | last post by:
Hi, Here is my query: select a.out_tar||'~'|| a.out_csi_id||'~'||a.out_cust_name||'~'||a.out_id||'~'||b.out_id||'~'||a.out_category||'~'|| b.out_category||'~'|| to_char(a.out_start_date, 'fm...
0
by: BSB | last post by:
Hi, I generate a "Find Duplicate" query for one table that will return some records I want to capture those records in my VB code..... This is my code...pls guide me how to proceed.......
5
by: raviufor | last post by:
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <conio.h> #include <ctype.h> #include <ctype.h> #include <time.h> #include <sys/types.h>
1
by: VinArt | last post by:
MS Acc 2003, XP Thank you in advance for any help. I have tables called "Makeup" and "Lines". Each makeup can have multiple lines. Goal is to create a new "makeup" with identical "lines"...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.