Doug:
There are two queries - the first one appends the data to the table while
the second updates a "memo" field for duplicate records. I am working with
data from an HR database that has duplicate records for some employees. They
like to keep track of the "home/main" work area as well as any assignments
the employee has been given. There is nothing I can do about the
duplicates...that is just the way it is.
Here is the SQL for the two querries:
Append querry:
INSERT INTO tblContacts ( ctPeopleSoftID, ctLastName1, ctFirstName1,
ctEnglishLang, ctEnglishServ, ctFrenchLang, ctEmailName, ctPhone1, ctFax,
ctCellPhone, ctCompanyName, ctLcAddress, ctLcCity, ctLcCountry,
ctLcPostalCode, ctLcProvState )
SELECT tblImpPeopleSoft.F1, tblImpPeopleSoft.F2, tblImpPeopleSoft.F3, -1 AS
English, -1 AS EnglishServ, IIf([F4]="Y",-1,0) AS French,
tblImpPeopleSoft.F5, tblImpPeopleSoft.F6, tblImpPeopleSoft.F7,
tblImpPeopleSoft.F8, tblImpPeopleSoft.F13, IIf([F22] Is Null,[F21],IIf([F23]
Is Null,[F21] & ", " & [F22],[F21] & ", " & [F22] & ", " & [F23])) AS
address, tblImpPeopleSoft.F24, tblImpPeopleSoft.F25, tblImpPeopleSoft.F26,
tblImpPeopleSoft.F27
FROM tblImpPeopleSoft;
The update query:
UPDATE tblContacts, tblImpPeopleSoft SET tblContacts.ctCustNotes = [f15] & "
- " & [f13] & Chr(13) & Chr(10) & [ctCustNotes]
WHERE (((tblContacts.ctPeopleSoftID)=[f1]) AND
((tblImpPeopleSoft.F15)<>"Substantive"));
If it helps the "overflow" error occurs even before the update querry is ran.
Any help you can provide is greatly appreciated.
Thanks,
FatMan
Douglas J. Steele said:
What's the SQL of the update query?
--
Doug Steele, Microsoft Access MVP
(no private e-mails, please)
Douglas:
Thanks for the info but there are no numeric fields on the form or in the
database. Most of the fields are text, some yes/no, date/time and one
memo
field and of course an autonumber. The query to append/update the data to
the table only updates the text fieldds. I have checked the length of
every
record in the update for every field and compared them to see if they are
larger than the size of the field and all are smaller than the max size.
Any
ideas?
Once again your help is greatly appreciated.
Thanks,
FatMan
:
Data that's too large for a field is the usual cause of Overflow errors,
usually a numeric value that's too large for the field type.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
Hi all:
I have a form that displays the following error: "Microsoft Access:
Overflow" when the form is open on certain records. The records
causing
the
problem are records that have been appended and/or updated via two
querries.
I thought it might indicate that the data is too large/long for the
fields.
Is this correct or could some on poin me in the right direction?
Any help would be greatly appreciated.
Thanks,
FatMan