Hey Guys n Girls.....
Ok so far I am developing an Access Runtime application for an international magazine firm.
The trouble I am having is the following scenario:
I have a table call [tbl_lists] which has a PK and FK linked to a main table. And a table that is [tbl_rep_code] this table has a column with each row having a unique letter example: Row 1 - 'A', Row 2 - 'B'..... till it ends at 'ZZ'. Just like all the column titles in Excel.
A user would journey through the forms the main form would build the initial campaign. This would give that campaign a unique CAMPID which is stored in 'tbl_campaigns'. The 'CAMPID' is passed through to the Form Lists. On this form the user can enter X amount of lists to be assigned to the CAMPID.
This is all in [tbl_lists] which has 'LISTID' as PK and 'CAMPID' as FK. For each record they enter they also need to give it a rep code letter the first would be 'A' then 'B' then so on. Some lists can be only 1 record other campaigns can be 50 which would mean they will be using 'A' - 'AZ'.
However I want a combo box in my unbound form that will basically intitally allow the user to choose a letter. When they click on ADD that record is then sent to tbl_lists. Afterwards if they want to assign another list record they will cannot see 'A' the next they can choose is 'B'.
But if the user needs to delete a list they can do so this would mean that for example 'A' will become available again to use next time.
Please bare in my mind that the list is linked to CAMPID as well. So when a new user creates another campaign there lists will have that new CAMPID which would mean that the new CAMPID will now get a fresh list of all the rep codes again from 'A' - 'ZZ'.
But i am really stuck in getting the logic right.... when i write down the logic i think of joining tables in queries but end up not working.
If its VBA i need to use am happy to do this. I just cannot name what this sort of logic is called.
Your help will be appreciated.
Anil