So, I'm still not sure I understand fully, but hopefully this will get you on the right path.
1: UPDATE UserRoles
2: SET ExpiryDate = DATEADD(year, 1, ur.ExpiryDate)
3: FROM
4: aspnet_Users au Left Outer Join
5: Users u On au.UserName = u.Username Inner Join
6: UserRoles ur On u.UserID = ur.UserID Inner Join
7: aspnet_Membership am On au.UserId = am.UserId
8: WHERE
9: DateDiff(day, ur.ExpiryDate, GetDate()) Between -1 And 0
10:
11: UPDATE aspnet_Membership
12: SET IsLockedOut = 1
13: FROM
14: aspnet_Users au Left Outer Join
15: Users u On au.UserName = u.Username Inner Join
16: UserRoles ur On u.UserID = ur.UserID Inner Join
17: aspnet_Membership am On au.UserId = am.UserId
18: WHERE
19: DateDiff(day, am.LastPasswordChangedDate, GetDate()) < 14
This updates the expiry date if the first where condition is met, and locks them out if the second is met.
Hope that helps,