I have a simple database that is supposed to manage tenants, houses and rent payment.
I input House details with fields as HouseID, HouseName, and ifOccupied(yes/no) fields.
THere is then another table that stores tenants details as they come in to rent the houses.
The house field in the tenants table is a lookup to the house field in the houses table.
If a tenant has taken a certain house, maybe house 005, the system should mark the house 005 as occupied in the houses table. ie, the yes/no field should be updated to yes or 1. If a house is vacated by a tenant, the house should be marked as vacant.
I have tried looping in the onload event of the houses table, but it is not working. I do not know if I should use record sets, but I really need an easy way to do this. Any assistance will be thankfully received
Handsam
I input House details with fields as HouseID, HouseName, and ifOccupied(yes/no) fields.
THere is then another table that stores tenants details as they come in to rent the houses.
The house field in the tenants table is a lookup to the house field in the houses table.
If a tenant has taken a certain house, maybe house 005, the system should mark the house 005 as occupied in the houses table. ie, the yes/no field should be updated to yes or 1. If a house is vacated by a tenant, the house should be marked as vacant.
I have tried looping in the onload event of the houses table, but it is not working. I do not know if I should use record sets, but I really need an easy way to do this. Any assistance will be thankfully received
Handsam