I'm doing an Access inventory program. I already got practically everything done, but there's only one thing that's giving me trouble right now, and it involves the reports. I'm going to try to explain it as general as possible.
Suppose you have item#1, and item#1 has attribute#1, attribute#2, attribute#3 and attribute#4. Now, suppose you have item#2, and item#2 has attribute#2 and attribute#4.
Now, in the table, an item that doesn't have a certain "attribute" will receive a N/A. For example, since item#2 only has attribute#2 and 4, in item#2's column value for attributes #1 and #3 will be N/A.
Now, on to my problem. Using a query of that table, I will be creating a report as a sort of "receipt". The receipt will show the items and their respective attributes. However, what I want is that when it writes an item, the attributes that it doesn't have doesn't write it. For example, if I want to write item#2, I don't want the attributes #1 and #3, since they will display N/A, and I don't think it looks good.
I already have the necessary code for it, my problem is that I don't know when it will execute. I've tried it on report load, but it only takes the value of the last field. I need the code to check every time it writes an item. Does anyone how how to do this? Please this is the only thing I have to do to finish my program.
Suppose you have item#1, and item#1 has attribute#1, attribute#2, attribute#3 and attribute#4. Now, suppose you have item#2, and item#2 has attribute#2 and attribute#4.
Now, in the table, an item that doesn't have a certain "attribute" will receive a N/A. For example, since item#2 only has attribute#2 and 4, in item#2's column value for attributes #1 and #3 will be N/A.
Now, on to my problem. Using a query of that table, I will be creating a report as a sort of "receipt". The receipt will show the items and their respective attributes. However, what I want is that when it writes an item, the attributes that it doesn't have doesn't write it. For example, if I want to write item#2, I don't want the attributes #1 and #3, since they will display N/A, and I don't think it looks good.
I already have the necessary code for it, my problem is that I don't know when it will execute. I've tried it on report load, but it only takes the value of the last field. I need the code to check every time it writes an item. Does anyone how how to do this? Please this is the only thing I have to do to finish my program.
Comment