Access 2003 on XP pro machine...
i'm running a crosstab query and an export to a 3rd party company showing different benefit plans for employees; specifically dental, vision and medical pulling the effective dates (date which the plan when into effect). generally the plans all have the same effective date. however in the case they don't 2 lines are returned for the same employee; the first containing, for example, their medical and vision effective dated 10/1/2007 w/ dental blank and their dental effective dated 11/1/2007 because he added his wife to his dental plan, leaving the medical/vision columns blank . those who would be receiving the information get errors when loading it into their system because of seperate lines. they claim they need everything on one line with the greatest effective date value in that line, but i am unable to figure out how. any assistance would be greatly appreciated.
also, i feel the need to mention this as i have searched here and google and have yet to find a solution, same database;
the final product sent out is a fixed width flatfile (text) which includes SSNs. the way i keep everything formatted ensures the leading zeroes remain all the way through to the final step of the export through Access. however when viewing the flatfile all leading zeroes have been stripped and the SSN fields are left justified.
original: 454545454 xxxxxx454545454 xxxx
orinigal: 056565656 xxxxxx56565656_ xxxx
original: 006767676 xxxxxx6767676__ xxxx
note: the underscore represents a space
i tried formatting the field as a Text exporting as text, tried as number exporting as text, as a number but running query converting it to a string, as a number changing the format to 000000000 but still no success
any assistance would be greatly appreciated.
i'm running a crosstab query and an export to a 3rd party company showing different benefit plans for employees; specifically dental, vision and medical pulling the effective dates (date which the plan when into effect). generally the plans all have the same effective date. however in the case they don't 2 lines are returned for the same employee; the first containing, for example, their medical and vision effective dated 10/1/2007 w/ dental blank and their dental effective dated 11/1/2007 because he added his wife to his dental plan, leaving the medical/vision columns blank . those who would be receiving the information get errors when loading it into their system because of seperate lines. they claim they need everything on one line with the greatest effective date value in that line, but i am unable to figure out how. any assistance would be greatly appreciated.
also, i feel the need to mention this as i have searched here and google and have yet to find a solution, same database;
the final product sent out is a fixed width flatfile (text) which includes SSNs. the way i keep everything formatted ensures the leading zeroes remain all the way through to the final step of the export through Access. however when viewing the flatfile all leading zeroes have been stripped and the SSN fields are left justified.
original: 454545454 xxxxxx454545454 xxxx
orinigal: 056565656 xxxxxx56565656_ xxxx
original: 006767676 xxxxxx6767676__ xxxx
note: the underscore represents a space
i tried formatting the field as a Text exporting as text, tried as number exporting as text, as a number but running query converting it to a string, as a number changing the format to 000000000 but still no success
any assistance would be greatly appreciated.
Comment