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 » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Table design question??



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2004, 12:19 AM
Norman F
external usenet poster
 
Posts: n/a
Default Table design question??

Hi there

How can i set up a table design structrue that allows me
recording events, which are 4 month apart?

In the database I need to record 2 vaccination. the first
dose and the second dose. The second dose has to be given
in 4 month! eg: if the first dose was given on the
01/01/2004 the second dose can't be given earlier than
01/05/2004.

the table structur consists of
GroupID,LocalCategory,Datevisisted, amount_given, as core
fields.

any suggestion is much appiciacted.

Regards Norman

  #2  
Old April 30th, 2004, 04:25 PM
Anne Troy
external usenet poster
 
Posts: n/a
Default Table design question??

That's fine. Now create yourself a query that adds a new field called
"VaccDue". Use this expression:

=DaveVisited+120 (which will give you a date 120 days--4 months--from the
date visited

-*--*--*--*--*--*--*--*-
Hope this helps!
Anne Troy (better known as Dreamboat)
Author: Dreamboat on Word
Email: Com.Piersontech@Dreamboat
(Reverse it!)
Web: www.TheOfficeExperts.com
-*--*--*--*--*--*--*--*-
"Norman F" wrote in message
...
Hi there

How can i set up a table design structrue that allows me
recording events, which are 4 month apart?

In the database I need to record 2 vaccination. the first
dose and the second dose. The second dose has to be given
in 4 month! eg: if the first dose was given on the
01/01/2004 the second dose can't be given earlier than
01/05/2004.

the table structur consists of
GroupID,LocalCategory,Datevisisted, amount_given, as core
fields.

any suggestion is much appiciacted.

Regards Norman



  #3  
Old April 30th, 2004, 10:30 PM
John Vinson
external usenet poster
 
Posts: n/a
Default Table design question??

On Thu, 29 Apr 2004 16:19:41 -0700, "Norman F"
wrote:

Hi there

How can i set up a table design structrue that allows me
recording events, which are 4 month apart?

In the database I need to record 2 vaccination. the first
dose and the second dose. The second dose has to be given
in 4 month! eg: if the first dose was given on the
01/01/2004 the second dose can't be given earlier than
01/05/2004.

the table structur consists of
GroupID,LocalCategory,Datevisisted, amount_given, as core
fields.


Your table is fine; for two vaccinations you would just add two
records. A Query using a criterion of

= DateAdd("m", 4, [DateVisited])


would list only those records eligible for another vaccination.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
 




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


All times are GMT +1. The time now is 01:58 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.