I have 2 tables both linked to SQL Server 1 has policy information and the other has error information both tables are linked with the relationship policy Ref. The error table(table2) has fields Pol ref, Error_Type,error, Comments, response_comments and response_Date. There are 25 types of error so what I have done is copy all fields from table 2 25 times exlcusing the policy ref and Error_Type but to make them relate to the relevent error I need to setup some VBA code that does an if Error1_checkbox is ticked then make Error_Type ="error1" and Error=1 else if error1_checkbox is unticked then make error_type null(blank).
I hope this is clear but any help on this would really really grateful as I have been trying to do this for a long time and cant figure it out. im sure its a quick if statement but I dont know how to write it as I dont know access VBA.
If you need any screenshots or more info please let me know. im using ACCESS 2010
Many thanks