N
Natalie
I have two tables: one is for addresses and has one primary key [User ID] the
other is for tenants at the address which has a compound primary key
consisting of two fields [User ID] + [Tenant ID] in the tenant table. When I
create a new record in the address form I want it to automatically update the
[Tenant ID] to the next available Tenant ID number. For example:
Addresses Tenants
[User ID] [User ID] [Tenant ID]
55 55 1
55 2
55 3
56 56 1
56 2
57 57 1
57 2
57 3
So if I add a new form, it will automatically add the next [User ID] but I
also want it to add the next available [Tenant ID] to the tenant field and I
want it to start at 1 if there are no previous tenants.
Any ideas?
other is for tenants at the address which has a compound primary key
consisting of two fields [User ID] + [Tenant ID] in the tenant table. When I
create a new record in the address form I want it to automatically update the
[Tenant ID] to the next available Tenant ID number. For example:
Addresses Tenants
[User ID] [User ID] [Tenant ID]
55 55 1
55 2
55 3
56 56 1
56 2
57 57 1
57 2
57 3
So if I add a new form, it will automatically add the next [User ID] but I
also want it to add the next available [Tenant ID] to the tenant field and I
want it to start at 1 if there are no previous tenants.
Any ideas?