BackgroundTreatment duration, treatment interval, formulation and type of antimicrobial (antibiotic) are modifiable factors that will influence antimicrobial selection pressure. Currently, the impact of the route of administration on the occurrence of resistance in humans is unclear.MethodsIn this retrospective multi-center cohort study, we assessed the impact of different variables on antimicrobial resistance (AMR) in pathogens isolated from the urinary tract in older adults. A generalized estimating equations (GEE) model was constructed using 7397 Escherichia coli (E. coli) isolates.ResultsResistance in E. coli was higher when more antibiotics had been prescribed before isolation of the sample, especially in women (significant interaction p = 0.0016) and up to nine preceding prescriptions it was lower for higher proportions of preceding parenteral prescriptions (significant interactions p = 0.0067). The laboratory identity, dying, and the time between prescription and sampling were important confounders (p < 0.001).ConclusionsOur model describing shows a dose-response relation between antibiotic use and AMR in E. coli isolated from urine samples of older adults, and, for the first time, that higher proportions of preceding parenteral prescriptions are significantly associated with lower probabilities of AMR, provided that the number of preceding prescriptions is not extremely high (≥10 during the 1.5 year observation period; 93% of 5650 included patients).Trial registrationRetrospectively registered.Electronic supplementary materialThe online version of this article (10.1186/s13756-018-0368-3) contains supplementary material, which is available to authorized users.