B
Barbara
I am working on a database to record inwards and outwards mail and work in
progress for my workplace. The database has been in existance for a couple
of years but I want to make some changes.
My question is in regards to the Clients table. The fields are:
Client No: (An autonumber primary field).
Client Code: This is a code allocated by my workplace. The same code may be
used several times eg. for an individual, their business name, their spouses
name.
Last Name: (This is also used for a business name)
First Name: (Only if an individual)
Name Type: (A lookup field - Main or Sub)
Basically what I want to happen is that records could look like this:
1 ABC123 BLOGS, Joe Main
2 ABC123 BLOGS & Co Pty Ltd Sub
3 ABC123 BLOGS, Josephine Sub
I want there to have to be a "Name Type" Main for any one client code, but
only one. Any additional "Name Types" for that client code have to be Sub.
I would also like error messages to pop up telling the user "You must have a
main client for this code", or similar, or "This client already has a Main
Client, you must choose Sub", or similar.
Hope this makes sense. Can anyone help with how to make it happen?????
Thanks
progress for my workplace. The database has been in existance for a couple
of years but I want to make some changes.
My question is in regards to the Clients table. The fields are:
Client No: (An autonumber primary field).
Client Code: This is a code allocated by my workplace. The same code may be
used several times eg. for an individual, their business name, their spouses
name.
Last Name: (This is also used for a business name)
First Name: (Only if an individual)
Name Type: (A lookup field - Main or Sub)
Basically what I want to happen is that records could look like this:
1 ABC123 BLOGS, Joe Main
2 ABC123 BLOGS & Co Pty Ltd Sub
3 ABC123 BLOGS, Josephine Sub
I want there to have to be a "Name Type" Main for any one client code, but
only one. Any additional "Name Types" for that client code have to be Sub.
I would also like error messages to pop up telling the user "You must have a
main client for this code", or similar, or "This client already has a Main
Client, you must choose Sub", or similar.
Hope this makes sense. Can anyone help with how to make it happen?????
Thanks