DID you switch to Data Sheet view? If so, the query will display the
records it is about to insert, but will not actually do any insertion.
You must execute (run) the query.
--Press the run button (Red Exclamation) or
--select Query: Run from the menu or
--Close the query and double click on the query in the query window Or
--Right click on the query name and select Open or ...
--
John Spencer
Access MVP 2002-2005, 2007-2008
Center for Health Program Development and Management
University of Maryland Baltimore County
..
By saying the query did not run, no data was appended.
Thanking for the help, here is the SQL code. The query was created in
design view
INSERT INTO FINAL_TABLE_ACCOUNTING ( [Member ID - Consist - MCS],
[Name-Last], [Name-First], [Gender Code], [Date of Birth], [Addr - Street
1],
[Addr-City], [Addr-State], [Addr-Zip], [Norm Risk Score - Base Yr],
DM_CATEGORY )
SELECT COPD_NO_CHF.[Member ID - Consist - MCS], COPD_NO_CHF.[Name - Last],
COPD_NO_CHF.[Name - First], COPD_NO_CHF.[Gender Code], COPD_NO_CHF.[Date
of
Birth], COPD_NO_CHF.[Addr - Street 1], COPD_NO_CHF.[Addr - City],
COPD_NO_CHF.[Addr - State], COPD_NO_CHF.[Addr - Zip], COPD_NO_CHF.[Norm
Risk
Score - Base Yr], "COPD" AS DM_CATEGORY
FROM COPD_NO_CHF;
:
Are you doing this from the QBE grid in design mode? You should be able
to
use the drop down to select the matching field.
Would you happen to have fields with just 'name' and/or 'last' as the
field
name? Access might misinterpet things and is trying to subtract two
columns.
Then there's the problem that "name" is a reserved word and "last" is a
group by function. That could cause Access to get confused. See the link
below.
http://support.microsoft.com/kb/286335/
As a rule, I never use any special characters, except the underscore, in
field names, table names, ect. This includes not using spaces. For
example I
would name a date of birth field, Date_of_Birth, DateOfBirth, or DOB.
I also avoid reserved words. I'd probably name your "date - last" either
DateLast or Date_Last.
Time to get down off my soap box. By "Therefore the query will not run",
what do you mean? Error message? No data appended to the table or just
that
field?
Please provide the SQL statement for that query. Maybe we can devine
something from it.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.
:
I am attempting to append one table with another. I have several
fields
whose names are in the form of xxx - yyyy, aaaa - bb, etc. There is
a
space on either side of the hyphen. One of the fields, named "name -
last"
(no quotes) is not being recognized, for a reason I can not understand.
Therefore the query will not run.
I have tripled checked that the names are in fact exactly duplicated in
each
table and that the properties are likewise duplicated.
I am at loss to determine what the problem might be?????
Thanks
Paul