Hi all i have 2 tables which are linked.
tblTreatment and tblTExternal
and the two fields i am trying to link are:
treatmentDate(dateField) and trtDate(TextField)
i know the reason why i get mismatch because one is date and the other is string/text.
Is there some how i can overcome this without changing the treatmentDate to a string?
the tblTExternal.trtDate has a format date like this:
trtDate
14Feb2004
20Jun2000
However with this i code with the help on this website it was changed to this format dd/mm/yyyy
the code:
TreatDate: CDate(Left([trtDate],2) & "/" & Mid([trtDate],3,Len([trtDate])-6) & "/" & Right([trtDate],4))
Many thanks
tblTreatment and tblTExternal
and the two fields i am trying to link are:
treatmentDate(dateField) and trtDate(TextField)
i know the reason why i get mismatch because one is date and the other is string/text.
Is there some how i can overcome this without changing the treatmentDate to a string?
the tblTExternal.trtDate has a format date like this:
trtDate
14Feb2004
20Jun2000
However with this i code with the help on this website it was changed to this format dd/mm/yyyy
the code:
TreatDate: CDate(Left([trtDate],2) & "/" & Mid([trtDate],3,Len([trtDate])-6) & "/" & Right([trtDate],4))
Many thanks