I have two combo boxes within a form that change based on the selection, the combo boxes are called hospital and ward, within each hospital they are certain wards and only the wards appear within the hospital selected, this works fine using a query with two table (hospital and ward). The problem i have is on a form that allows the user to view the database records which i have locked for viewing only, the data for for the hospital and wards appear with the id numbers from the table, not the hospital and ward name. I was considering using an if statement for each, for example
if hospital = "1" then
hospital = hospital name
This same like a laborious way to do this, is there a way i can do this using a query? I dont have access to my database atm, i would probably need to post it up it properly explain what im talking about.