mike60smart
Registered User.
- Local time
- Today, 20:36
- Joined
- Aug 6, 2017
- Messages
- 2,237
So are you saying that the tblAccDirectory could have 1 or more of the Account types associated with it?I looked at what you did, and I think you don't understand, @mike60smart, ETF, Foreign tax, & Money Market are not mutually exclusive nor dependent on one another. They are individual independent binary states. As far as I can guess, every combination of the 3 (all 8 possibilities) are possible, but as far as I know there may only be 2-3 possibilities. As I cannot saddle my data with such limitations, leaving them separate allows for every possibility. As far as I know, there could be more possibilities unknown to me now to cover, I cannot predict everything I might need the future, I just know I need these.
Specifically, a "core class" account is the only account type that can store cash. Therefore, before allowing any monetary transaction a "core class" account must be selected, that's easy, just use that account type. But many transactions are independent of ETF, Foreign tax, & Money Market designations. 2 of these 3 aren't even important now, I have them in there because these accounts may be handled differently in certain situations, I want them in there because they could be important later when I add a functionality to this database. Really, I don't even want to have types 2&3 there in your table, but simply binary yes/no's to tell my forms and reports how to behave, such as whether or not a tax on a transaction is a foreign tax. As a matter of fact, I also need a field to denote the foreign entity of the tax, perhaps a Country, or a Region, just to reconcile the taxes paid with the US Federal Income Tax return documents. That doesn't need a separate account type as far as I knew originally, but I understand where you guys are coming from with this desire to place it in the account type table. So I go along with it, I know I am in a learning process.
If this is the case then it would be managed differently.
Here with an example in the attached.
Attachments
			
				Last edited: 
			
		
	
								
								
									
	
		
			
		
		
	
	
	
		
			
		
		
	
								
							
							 
	 
 
		 You won't need the validation logic (which I seriously doubt that you have anyway) that prevents any more than one value from being true.  You also only have one field to test in a query.  That means instead of having four queries, one to bring back each type of data, you have ONE query with an argument.  The argument specifies which type you want the query to return at any given point in time.  I don't know if it is possible for the list to be expanded but if it is, expansion is totally transparent.  NO changes need to be made to anything.  You simply add a new value to the RowSource list and that's it - PERIOD.  No queries need to change, no forms, no reports.  YEAH!!!!!!!!
  You won't need the validation logic (which I seriously doubt that you have anyway) that prevents any more than one value from being true.  You also only have one field to test in a query.  That means instead of having four queries, one to bring back each type of data, you have ONE query with an argument.  The argument specifies which type you want the query to return at any given point in time.  I don't know if it is possible for the list to be expanded but if it is, expansion is totally transparent.  NO changes need to be made to anything.  You simply add a new value to the RowSource list and that's it - PERIOD.  No queries need to change, no forms, no reports.  YEAH!!!!!!!! 
 
		