Question : Macro for delete data

Hi,

I would like to request Experts help create a macro to clear all data at CH1 to Ch12 sheets (column B to I)  if cells in column A  are numbered. Hope Experts can help me to create this feature. I’ve attached the workbook for Experts perusal.


Attachments:
 
 

Answer : Macro for delete data

"Yes, it is, but it often has no data"

How can it have no data?  Even when creating a new record the link field in the subform will immediately have the same value as its master link field in the main form?

But if you have multiple copies of the same subform on a main form, I don't see any way that you can tell which one you are in, unless you set up some data to tell you.  I would have thought that the link child value woud be sufficient, otherwise how does the subform know which records to display?
But if you insist that is not so, then the only other approach that i can see working is to use the Enter event procedure of every subform container control and set a public variable to a distinct value which you can then refer to in your subform code.
Random Solutions  
 
programming4us programming4us