A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help With Expression Please



 
 
Thread Tools Display Modes
  #1  
Old December 1st, 2005, 10:16 PM posted to microsoft.public.access.gettingstarted
external usenet poster
 
Posts: n/a
Default Help With Expression Please

On Thu, 1 Dec 2005 16:42:03 +0000 (UTC), Saxman
wrote:

=DCount("*","Clients","[Therapy1] = '1'")+DCount("*","Clients","[Therapy2]
= '1'")+DCount("*","Clients","[Therapy3] =
'1'")+DCount("*","Clients","[Therapy4] =
'1'")+DCount("*","Clients","[Therapy5] =
'1'")+DCount("*","Clients","[Therapy6] = '1'")


I see you got a solution... BUT.

Part of the problem is that your table structure is non normalized. If
you have six therapies for a client, someday you might need seven.
What do you do then? Restructure your table, rewrite all your queries,
redesign all your forms?

If you have a Many (clients) to Many (therapies) relationship... model
it as a many to many relationship, with a ClientTherapy table with one
row for each therapy/client combination.

John W. Vinson[MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Query expression criteria- Access can't recognize column as dates Ken Snell [MVP] Running & Setting Up Queries 2 August 2nd, 2005 01:41 AM
Problem using Query Criteria with an Expression Carol Running & Setting Up Queries 6 June 21st, 2005 09:03 PM
Can Excel represent formula in textural format with values substi. BoneR Worksheet Functions 7 March 31st, 2005 03:11 PM
expression builder erased my expression Stefano General Discussion 1 December 6th, 2004 10:17 PM
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM


All times are GMT +1. The time now is 06:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.