Wonder if someone could point me in the right direction here,
I have a form that is used for auditing, it displays various data in relation to a patient however due to space etc I have inserted a column of fields that will display what’s called dagger and asterisks values, as these are not common I just want the user to be able to look up the value’s meaning from a table and the meaning to be displayed in a Form..
So I have placed buttons down the right side of these fields for them to click on,
So easy enough in my mind, just build a query that takes it’s value from the field in the form,
That works for the 1st one and then I thought hang on “Do I really want to build 14 queries etc”
So to VBA, so next thought is lets put a bit of SQL behind each button and change the last bit of the code to reference the field it relates to... solved... err no.. not quite as I am not sure how to get it to display the result in the form and don’t think I need to build 14 separate form..???
The SQL Behind the original query is:
SELECT ICD10_LOCAL.CODE, ICD10_LOCAL.DESCRIPTION
FROM ICD10_LOCAL
WHERE (((ICD10_LOCAL.CODE)=[Forms]![frm_Audit].[Diag_supl_1]));
Diag_supl_1 goes from 1 to 14 hence the 14 buttons for looking up,
(I have put a screen shot on as an attachment)
So at present I have the first D-A Code button open a form called frm_Dagger_Asterisk which takes a feed from a query with the above SQL running it, Am I going the right way using SQL behind each button and if so how do I get the result from the SQL to open the form and display the value for that particular field... any help appreciated