PC Review


Reply
Thread Tools Rate Thread

Design question about buttons

 
 
Emma
Guest
Posts: n/a
 
      10th Nov 2008
Hello I have a button which brings up information to discharge the client, it
has an automatic date which is populated back onto the first page to show the
date the discharge happened.

Now, we would like to expand and have several date fields thus the client
can be discharged, come back and be discharged again. The only problem is I
have to create a new table for the discharge to happen more then once. I've
tried using the table wizard but it still uses the old table. I know now this
was an intial design error on my part. Can anyone offer any advice?

Thanks Emma
 
Reply With Quote
 
 
 
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      10th Nov 2008
Any table can be opened in Design View to add fields. A new table can be
easily created also without a wizard. Which version of Access are you using?
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Emma" <(E-Mail Removed)> wrote in message
news:7813C287-978C-47F3-AA5F-(E-Mail Removed)...
> Hello I have a button which brings up information to discharge the client,
> it
> has an automatic date which is populated back onto the first page to show
> the
> date the discharge happened.
>
> Now, we would like to expand and have several date fields thus the client
> can be discharged, come back and be discharged again. The only problem is
> I
> have to create a new table for the discharge to happen more then once.
> I've
> tried using the table wizard but it still uses the old table. I know now
> this
> was an intial design error on my part. Can anyone offer any advice?
>
> Thanks Emma



 
Reply With Quote
 
Jeff Boyce
Guest
Posts: n/a
 
      10th Nov 2008
Emma

Are you saying that you are working with a one-to-many relationship? That
is, one client can be discharged many times?

If so, you'd need to use a "child" table to store each
"incident"/"participation"/(whatever leads up to a discharge).

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Emma" <(E-Mail Removed)> wrote in message
news:7813C287-978C-47F3-AA5F-(E-Mail Removed)...
> Hello I have a button which brings up information to discharge the client,
> it
> has an automatic date which is populated back onto the first page to show
> the
> date the discharge happened.
>
> Now, we would like to expand and have several date fields thus the client
> can be discharged, come back and be discharged again. The only problem is
> I
> have to create a new table for the discharge to happen more then once.
> I've
> tried using the table wizard but it still uses the old table. I know now
> this
> was an intial design error on my part. Can anyone offer any advice?
>
> Thanks Emma



 
Reply With Quote
 
Emma
Guest
Posts: n/a
 
      10th Nov 2008
Yes I'm using 2007. I would like a one to many relationship, however there's
nothing that needs to be done before the user discharges a client just click
the button and enter the data in the form that opens up.

"Arvin Meyer [MVP]" wrote:

> Any table can be opened in Design View to add fields. A new table can be
> easily created also without a wizard. Which version of Access are you using?
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
>
> "Emma" <(E-Mail Removed)> wrote in message
> news:7813C287-978C-47F3-AA5F-(E-Mail Removed)...
> > Hello I have a button which brings up information to discharge the client,
> > it
> > has an automatic date which is populated back onto the first page to show
> > the
> > date the discharge happened.
> >
> > Now, we would like to expand and have several date fields thus the client
> > can be discharged, come back and be discharged again. The only problem is
> > I
> > have to create a new table for the discharge to happen more then once.
> > I've
> > tried using the table wizard but it still uses the old table. I know now
> > this
> > was an intial design error on my part. Can anyone offer any advice?
> >
> > Thanks Emma

>
>
>

 
Reply With Quote
 
Arvin Meyer [MVP]
Guest
Posts: n/a
 
      11th Nov 2008
Build a second table with the PatientID as the join key (Primary Key in the
Patients table and Foreign Key in the new table. Do it something like:

tblPatientVisits
VisitID PK autonumber
PatientID FK long integer (will join with PatientID in Patients table
VisitDate Date/Time
DischargeDate Date/Time
VisitDetails Memo

and any fields specific to that visit.

Now use you existing patients table to append data any of the fields which
now belong in the PatientVisits table. The autonumber will fill in by itself
so you need not worry about it for now.

Create a query, something like:

Select * from tblPatientVisits;

Now create a datasheet or continuous form with the query as a recordsource.
After joining the relationship between tables, use the continuous form as a
subform in the Patients form.

Once you are satisfied that the data is correct, go back and delete the
redundant fields from the Patients table and the controls on the main
Patients form. You should now have everything properly setup. Pat yourself
on the back and tell your boss that the problem is solved.
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Emma" <(E-Mail Removed)> wrote in message
news:8E245E2D-E962-4050-9AD9-(E-Mail Removed)...
> Yes I'm using 2007. I would like a one to many relationship, however
> there's
> nothing that needs to be done before the user discharges a client just
> click
> the button and enter the data in the form that opens up.
>
> "Arvin Meyer [MVP]" wrote:
>
>> Any table can be opened in Design View to add fields. A new table can be
>> easily created also without a wizard. Which version of Access are you
>> using?
>> --
>> Arvin Meyer, MCP, MVP
>> http://www.datastrat.com
>> http://www.mvps.org/access
>> http://www.accessmvp.com
>>
>>
>> "Emma" <(E-Mail Removed)> wrote in message
>> news:7813C287-978C-47F3-AA5F-(E-Mail Removed)...
>> > Hello I have a button which brings up information to discharge the
>> > client,
>> > it
>> > has an automatic date which is populated back onto the first page to
>> > show
>> > the
>> > date the discharge happened.
>> >
>> > Now, we would like to expand and have several date fields thus the
>> > client
>> > can be discharged, come back and be discharged again. The only problem
>> > is
>> > I
>> > have to create a new table for the discharge to happen more then once.
>> > I've
>> > tried using the table wizard but it still uses the old table. I know
>> > now
>> > this
>> > was an intial design error on my part. Can anyone offer any advice?
>> >
>> > Thanks Emma

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Min/Max buttons in Design view teelee Microsoft Access Forms 1 3rd May 2008 12:51 AM
Form Design Toggle buttons KarenMike Microsoft Access Getting Started 1 30th Jan 2008 05:25 PM
design mode buttons =?Utf-8?B?TWlrZSBNb2x5bmVhdXg=?= Microsoft Excel Misc 3 2nd Aug 2007 07:52 PM
how to change the design of command buttons =?Utf-8?B?U3BpbGxz?= Microsoft Access 3 19th Apr 2006 02:41 PM
DirectX and Design buttons Daniel Microsoft C# .NET 4 17th Mar 2006 08:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:43 PM.