WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DYNAMIC STUDENT DATABASE

 
Goto page 1, 2, 3
   Home -> Office other -> Table Design RSS
Next:  Publisher tables & Adobe Acrobat  
Author Message
Brad Hodges

External


Since: Sep 08, 2009
Posts: 7



(Msg. 1) Posted: Tue Sep 08, 2009 8:52 am
Post subject: DYNAMIC STUDENT DATABASE
Archived from groups: microsoft>public>access>tablesdbdesign (more info?)

I am an administrator over military courses. I'm trying to slim down an
overly redundant database. I would like to make it as dynamic as possible.
I have two records in the same table; Graduation date and status.
Can I have a graduation date automatically another field called status which
currently is either "active" or "history" without using a manual "update
query" process? I would assuse it's a simple select statement in the status
field but need help.
Back to top
Login to vote
Piet Linden

External


Since: Aug 11, 2008
Posts: 21



(Msg. 2) Posted: Tue Sep 08, 2009 9:53 am
Post subject: Re: DYNAMIC STUDENT DATABASE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sep 8, 10:52 am, Brad Hodges <bradhod... RemoveThis @discussions.microsoft.com>
wrote:
> I am an administrator over military courses.  I'm trying to slim down an
> overly redundant database.  I would like to make it as dynamic as possible.  
> I have two records in the same table;  Graduation date and status.
> Can I have a graduation date automatically another field called status which
> currently is either "active" or "history" without using a manual "update
> query" process?  I would assuse it's a simple select statement in the status
> field but need help.

Sounds like you mean two columns, not two records.

If so, then you can use the AfterUpdate event of the graduation date
do something like

Sub GraduationDate_AfterUpdate()
If Me.GraduationDate<Date() Then 'Graduation Date is before
the currentdate
Me.Status="History"
End If
End Sub
Back to top
Login to vote
Brad Hodges

External


Since: Sep 08, 2009
Posts: 7



(Msg. 3) Posted: Tue Sep 08, 2009 10:05 am
Post subject: Re: DYNAMIC STUDENT DATABASE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Piet Linden,

Thank you very much for the prompt response. Where do I insert that sub at?
I've taken a VB course, but very little training on VB in Access.

"Piet Linden" wrote:

> On Sep 8, 10:52 am, Brad Hodges <bradhod....RemoveThis@discussions.microsoft.com>
> wrote:
> > I am an administrator over military courses. I'm trying to slim down an
> > overly redundant database. I would like to make it as dynamic as possible.
> > I have two records in the same table; Graduation date and status.
> > Can I have a graduation date automatically another field called status which
> > currently is either "active" or "history" without using a manual "update
> > query" process? I would assuse it's a simple select statement in the status
> > field but need help.
>
> Sounds like you mean two columns, not two records.
>
> If so, then you can use the AfterUpdate event of the graduation date
> do something like
>
> Sub GraduationDate_AfterUpdate()
> If Me.GraduationDate<Date() Then 'Graduation Date is before
> the currentdate
> Me.Status="History"
> End If
> End Sub
>
Back to top
Login to vote
John W. Vinson

External


Since: Jan 29, 2004
Posts: 4627



(Msg. 4) Posted: Tue Sep 08, 2009 12:18 pm
Post subject: Re: DYNAMIC STUDENT DATABASE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Tue, 8 Sep 2009 08:52:02 -0700, Brad Hodges
<bradhodges DeleteThis @discussions.microsoft.com> wrote:

>I am an administrator over military courses. I'm trying to slim down an
>overly redundant database. I would like to make it as dynamic as possible.
>I have two records in the same table; Graduation date and status.
>Can I have a graduation date automatically another field called status which
>currently is either "active" or "history" without using a manual "update
>query" process? I would assuse it's a simple select statement in the status
>field but need help.

If the status is "active" up until the graduation date, and "history"
thereafter, then the Status field should *simply not exist* in your table at
all. It can be calculated on the fly in a query:

Status: IIF(NZ([Graduation date], Date()) >= Date(), "Active", "History")
--

John W. Vinson [MVP]
Back to top
Login to vote
Steve

External


Since: Aug 04, 2009
Posts: 21



(Msg. 5) Posted: Tue Sep 08, 2009 1:01 pm
Post subject: Re: DYNAMIC STUDENT DATABASE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You can put code in the AfterUpdate event of the Graduation Date field that
automatically fills in the Status field when you enter the Graduation Date.

Steve
santus.DeleteThis@penn.com


"Brad Hodges" <bradhodges.DeleteThis@discussions.microsoft.com> wrote in message
news:5BFB84A3-9783-4C56-ABDA-2EA9139B3EB5@microsoft.com...
>I am an administrator over military courses. I'm trying to slim down an
> overly redundant database. I would like to make it as dynamic as
> possible.
> I have two records in the same table; Graduation date and status.
> Can I have a graduation date automatically another field called status
> which
> currently is either "active" or "history" without using a manual "update
> query" process? I would assuse it's a simple select statement in the
> status
> field but need help.
Back to top
Login to vote
Fred

External


Since: Jun 26, 2006
Posts: 506



(Msg. 6) Posted: Tue Sep 08, 2009 1:01 pm
Post subject: Re: DYNAMIC STUDENT DATABASE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Brad,

It's quite possible that when you examine your other particulars, you may
find that "status" needn't or shouldn't be a field. E.G. if it is purely
derived from other fields, that derivation could be done when the status info
is needed.
Back to top
Login to vote
Brad Hodges

External


Since: Sep 08, 2009
Posts: 7



(Msg. 7) Posted: Tue Sep 08, 2009 1:01 pm
Post subject: Re: DYNAMIC STUDENT DATABASE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Fred,

Thank you very much. I agree. The only reason I let this field remain is
that the existing database has counters for the two types of students which
populates data in the default form currently being used as a quasi
switchboardt based off an "admin table" which is a query off the main table.
Like I said initially, alot of redundancies!!!

"Fred" wrote:

> Brad,
>
> It's quite possible that when you examine your other particulars, you may
> find that "status" needn't or shouldn't be a field. E.G. if it is purely
> derived from other fields, that derivation could be done when the status info
> is needed.
Back to top
Login to vote
Fred

External


Since: Jun 26, 2006
Posts: 506



(Msg. 8) Posted: Tue Sep 08, 2009 1:01 pm
Post subject: Re: DYNAMIC STUDENT DATABASE [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Whew!

Sounds like an "adventure"

Fred
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Table Design All times are: Eastern Time (US & Canada) (change)
Goto page 1, 2, 3
Page 1 of 3

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support