aargh! help me please. I am creating a database with Access 2010. The table in question has as many as 20 columns but the List box selection in Col1 should allow ONLY certain columns to be updated and the other columns disabled for the same row. I am going round and round and have managed to confuse meself even further. Anyone please tell me what I'm doing wrong? Your help is greatly needed and appreciated.
List Box in [Condition] has values Pregnant, On Route delivery, Post Partum Hemorrhage, Preterm Labour. For example selecting Pregnant in this column should allow me to update 11 columns and if I select Post Natal Hemorrhage in the next row, I should not be able to update any of those eleven columns. I want to be able to update another set of columns. This is an example of what I put in the table validation rule but it is not working as I want it to. I changed the col names and am using only five columns here for convenience:
IIf(([Condition] = "On-Route Delivery" Or [Condition] = "Post Partum Hemorrhage") And
(IsNull([columnF]) Or IsNull([columnG]) Or IsNull([columnH]) Or IsNull([columnI]) Or IsNull([columnJ]))) OR
(([Condition]="Pregnant" Or [Condition]="Pre-Term Labour") And (Not IsNull([columnF]) Or Not IsNull([columnG]) Or Not IsNull([columnH])
Or Not IsNull([columnI]) Or Not IsNull([columnJ]))),True,False)
List Box in [Condition] has values Pregnant, On Route delivery, Post Partum Hemorrhage, Preterm Labour. For example selecting Pregnant in this column should allow me to update 11 columns and if I select Post Natal Hemorrhage in the next row, I should not be able to update any of those eleven columns. I want to be able to update another set of columns. This is an example of what I put in the table validation rule but it is not working as I want it to. I changed the col names and am using only five columns here for convenience:
IIf(([Condition] = "On-Route Delivery" Or [Condition] = "Post Partum Hemorrhage") And
(IsNull([columnF]) Or IsNull([columnG]) Or IsNull([columnH]) Or IsNull([columnI]) Or IsNull([columnJ]))) OR
(([Condition]="Pregnant" Or [Condition]="Pre-Term Labour") And (Not IsNull([columnF]) Or Not IsNull([columnG]) Or Not IsNull([columnH])
Or Not IsNull([columnI]) Or Not IsNull([columnJ]))),True,False)