Bonjour Dave, j'ai essayé avec les champs ID_INDIVIDU,ID_PERE,ID_MERE, ID_CONJOINT et la répone: Echec lors de la conversion de type listeind$_Erreurs d'importation
Jean
Bonjour Dave, j'ai essayé avec les champs ID_INDIVIDU,ID_PERE,ID_MERE, ID_CONJOINT et la répone: Echec lors de la conversion de type listeind$_Erreurs d'importation
Jean
Looking at the Excel file, those 4 fields are not numeric. Each column's values are prefixed with "I", so it is not possible to import them as numeric.
Here's a solution.
1. Import the Excel, allowing the fields to import as text into Access.
2. Then run this query to remove the leading "I" in the four columns:
3. Open table Listeind in design view and change the four fields to Number, Long Integer.Code:UPDATE Listeind SET Listeind.ID_INDIVIDU = Replace(Nz([ID_INDIVIDU],""),"I",""), Listeind.ID_PERE = Replace(Nz([ID_PERE],""),"I",""), Listeind.ID_MERE = Replace(Nz([ID_MERE],""),"I",""), Listeind.CONJOINT = Replace(Nz([CONJOINT],""),"I","");
4. Change SEXE from double to Integer.
Bonjour Dave, Je suis réellement vert avec Access. J'ai importe la table tel que article 1 J'ai ensuite ouvert création de requete mais jew ne vois pas ou inscrire la formule
Bonjour Dave, tu es une personne formidable. Merci de ton aide si précieuse. Tu es mon Mentor
Formidable? Indeed. Different nuance in French and English.
Glad to help. Good luck with the project.
Bonjour Dave,
Je tente avec une nouvelle table Listeind et j'ai le message Fonction''Remplacer'' non définie dans l'expression
UPDATE Listeind SET Listeind.ID_INDIVIDU = Remplacer(Nz([ID_INDIVIDU],""),"I",""), Listeind.ID_PERE = Remplacer(Nz([ID_PERE],""),"I","") , Listeind.ID_MERE = Remplacer(Nz([ID_MERE],""),"I",""), Listeind.CONJOINT = Remplacer(Nz([CONJOINT],""),"I","");
I think you must spell it exactly REPLACE, not translated.
Merci, cela a fonctionné
Probleme réglé pour type texte vers nombre.Mais comment transformer une date au format texte en format date ?
Merci de votre aide
Use the CDate function.
This is a basic VBA question that would easily and much more quickly be answered by a Google search rather than waiting for turnaround at this site.
Do you not have Google in France?
Pour information, je suis du Québec.C'est la premiere chose que j'ai fait, aller sur Googleet les résultats sans succes.Le fichier provient d'un fichier Gedcom du base de logiciel généalogique qui a été lu par Oxy-Gene, converti en fichier .CSV, transformé en fichier Excel et importer dans Access.Je vais essayer avec CDate
Merci, je vais essayer