The tabel currently has 0 records because when we tried to update the
database, all the delete queries run but not the appends. When I run the
select query there are tens of thousands of records (and keep in mind the
query is only pulling records for the last 6 months). Here is the SQL for the
Select Query:
SELECT ODSE_TRANSACTION_RESEARCH.SSN,
ODSE_TRANSACTION_RESEARCH.TYPE_TRANSACTION_CODE,
ODSE_TRANSACTION_RESEARCH.EFFECTIVE_DATE,
ODSE_TRANSACTION_RESEARCH.ENGLISH_STATEMENT_TEXT,
ODSE_TRANSACTION_RESEARCH.HISTORY_DATA_TEXT,
ODSE_MARINE_COMMAND.PRESENT_ADMIN_RPT_UNIT_CD
FROM ODSE_MARINE_COMMAND INNER JOIN ODSE_TRANSACTION_RESEARCH ON
ODSE_MARINE_COMMAND.SSN = ODSE_TRANSACTION_RESEARCH.SSN
WHERE (((ODSE_TRANSACTION_RESEARCH.TYPE_TRANSACTION_CODE)="0520") AND
((ODSE_TRANSACTION_RESEARCH.EFFECTIVE_DATE)=[ENTER DATE]-182) AND
((ODSE_MARINE_COMMAND.PRESENT_ADMIN_RPT_UNIT_CD)="45124")) OR
(((ODSE_MARINE_COMMAND.PRESENT_ADMIN_RPT_UNIT_CD)="45124"));
And the Append Query:
INSERT INTO [TVL CLAIM] ( SSN, TYPE_TRANSACTION_CODE, EFFECTIVE_DATE,
ENGLISH_STATEMENT_TEXT, HISTORY_DATA_TEXT, PRESENT_ADMIN_RPT_UNIT_CD )
SELECT ODSE_TRANSACTION_RESEARCH.SSN,
ODSE_TRANSACTION_RESEARCH.TYPE_TRANSACTION_CODE,
ODSE_TRANSACTION_RESEARCH.EFFECTIVE_DATE,
ODSE_TRANSACTION_RESEARCH.ENGLISH_STATEMENT_TEXT,
ODSE_TRANSACTION_RESEARCH.HISTORY_DATA_TEXT,
ODSE_MARINE_COMMAND.PRESENT_ADMIN_RPT_UNIT_CD
FROM ODSE_MARINE_COMMAND INNER JOIN ODSE_TRANSACTION_RESEARCH ON
ODSE_MARINE_COMMAND.SSN = ODSE_TRANSACTION_RESEARCH.SSN
WHERE (((ODSE_TRANSACTION_RESEARCH.TYPE_TRANSACTION_CODE)="0520") AND
((ODSE_TRANSACTION_RESEARCH.EFFECTIVE_DATE)=[ENTER DATE]-182) AND
((ODSE_MARINE_COMMAND.PRESENT_ADMIN_RPT_UNIT_CD)="45124")) OR
(((ODSE_MARINE_COMMAND.PRESENT_ADMIN_RPT_UNIT_CD)="45124"));
Upon running the update, or the query by itself, the user is prompted to
enter the current date. I can delete records in the table with no problems
and I havent gotten any other warnings. Where do I check to see if Set
Warnings is on or off? The database file is 1.01G.
Jerry Whittle said:
Post the SQL for a SELECT query that works and the similar APPEND query.
Do you see any other error messages ever? For example if you delete a record
in a table, do you get a warning message first? Possibly someone has turned
off Set Warnings which will stop a lot of error messages from displaying.
How many records are you trying to append? How many records already in the
table.
Do you have Read, Write, Create, and Delete privileges to both the database
file that you are trying to append to AND the entire folder where the table
is located?
How big is the database file?