Hello,
I would like to know how to run if condition statement for specific column.
Below mentioned is data and criteria I want to apply. Basically I want to update Points as per Membership package and give deadline to use points. I can use if statement for first transaction through VBA coding but I dont know how to do it for whole data.
Databse
[TABLE="width: 636"]
<tbody>[TR]
[TD]Bill Date[/TD]
[TD]Guestname[/TD]
[TD]Membership Name[/TD]
[TD]Points[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]18-08-17[/TD]
[TD]sadhvi s[/TD]
[TD]You First(++) Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22-08-17[/TD]
[TD]Avtar Kaur[/TD]
[TD]You First(++) Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23-08-17[/TD]
[TD]MANOJ .[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20-08-17[/TD]
[TD]Sheersha Arun[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22-07-17[/TD]
[TD]Deepali .[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20-08-17[/TD]
[TD]sushmita .[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21-08-17[/TD]
[TD]Pankaj .[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Criteria
[TABLE="width: 443"]
<tbody>[TR]
[TD]Membership Name[/TD]
[TD]Points[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]You First(++) Membership[/TD]
[TD]400[/TD]
[TD]`=Billdate+7[/TD]
[TD]`=Billdate+60[/TD]
[/TR]
[TR]
[TD]You First(+) Membership[/TD]
[TD]350[/TD]
[TD]`=Billdate+7[/TD]
[TD]`=Billdate+60[/TD]
[/TR]
[TR]
[TD]You First Membership[/TD]
[TD]300[/TD]
[TD]`=Billdate+7[/TD]
[TD]`=Billdate+60[/TD]
[/TR]
</tbody>[/TABLE]
I would like to know how to run if condition statement for specific column.
Below mentioned is data and criteria I want to apply. Basically I want to update Points as per Membership package and give deadline to use points. I can use if statement for first transaction through VBA coding but I dont know how to do it for whole data.
Databse
[TABLE="width: 636"]
<tbody>[TR]
[TD]Bill Date[/TD]
[TD]Guestname[/TD]
[TD]Membership Name[/TD]
[TD]Points[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]18-08-17[/TD]
[TD]sadhvi s[/TD]
[TD]You First(++) Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22-08-17[/TD]
[TD]Avtar Kaur[/TD]
[TD]You First(++) Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]23-08-17[/TD]
[TD]MANOJ .[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20-08-17[/TD]
[TD]Sheersha Arun[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]22-07-17[/TD]
[TD]Deepali .[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]20-08-17[/TD]
[TD]sushmita .[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]21-08-17[/TD]
[TD]Pankaj .[/TD]
[TD]You First Membership[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Criteria
[TABLE="width: 443"]
<tbody>[TR]
[TD]Membership Name[/TD]
[TD]Points[/TD]
[TD]Start Date[/TD]
[TD]End Date[/TD]
[/TR]
[TR]
[TD]You First(++) Membership[/TD]
[TD]400[/TD]
[TD]`=Billdate+7[/TD]
[TD]`=Billdate+60[/TD]
[/TR]
[TR]
[TD]You First(+) Membership[/TD]
[TD]350[/TD]
[TD]`=Billdate+7[/TD]
[TD]`=Billdate+60[/TD]
[/TR]
[TR]
[TD]You First Membership[/TD]
[TD]300[/TD]
[TD]`=Billdate+7[/TD]
[TD]`=Billdate+60[/TD]
[/TR]
</tbody>[/TABLE]