Possibly Easy: Conditional Forms

Dec 4, 2004

Hi!

I am new here and not very into Access. I know my way around databases (MySQL), but need som practical help using Access.

My girlfriend is a physiotherapist. I want to make a patient database for her. At the moment I have two tables:

Patient:
patient_id, name, etc.

Treatment:
treatment_id, patient_id, date, time, etc.

I have one form now: patient, where she can fill out all the information about the patient.

What I want is for her to find her patient, then press a button "new treatment", which leads to a new form with treatment_id (autonumber) and patient_id automatically filled out. All she then has to do is fill in the date and stuff.

How do I make this button? Do I have to make a query first or does this require macro's? Any hints would be very much appreciated!

View Replies


ADVERTISEMENT

Possibly Simple, Possibly Dumb Question.

Sep 10, 2006

I've developed a database for a small company but've now encountered a few problems. Initially, I was asked to create a table of customers and a table for business to business trade. However, I was then asked to merge the two tables together.

This led to a problem. The primary key was set to adhere with the already existing ID numbers of customers which were created by the company director years ago before the leap in to technology. For example, their first customer had an ID number of 1 outside of the database, and thus in the database the first customer would have an ID number of 1. This is simple, and could be achieved with an autonumber.

Outside of the database, ID numbers were created chronologically, so the first business to business trade did not have an ID number of 1, more something like 321. As I said a while back, the two tables had to be merged, and this left me with every customer in the first ~1000 and then all the B2B trade lumped on at the end. The question I'm thus asking is there anyway I can reorder the records selectively to retain their original ID number? It'd save the director a bunch of time.

Thanks in advance, David.

View 3 Replies View Related

Possibly The Easiest Question Ever Asked

Feb 1, 2008

This is probably blindingly obvious but I'm unsure about it.

We'll refer to three tables, call them Table X, Table Y and Table Z.

Basically, I have a database with 10 tables. Table X links to Table Y via the Primary Key. Another field in Table X has a relationship with the Primary Key in Table Z (a foreign key).

Now, does the field in Table X that has a relationship with the primary key in Table Z need to be the primary key as well?

Put another way, does Table X need two primary keys?

View 1 Replies View Related

Help! MS Access Very Slow, Possibly Due To My Environment

Jun 7, 2007

I am using MS Access 2000 in a Windows Terminal Server 2003 Environment and the performance is incredibly slower than running the same job on a Stand Alone CPU with Access 2003.

Any idea? Access 2000 is running slower on a TServer?
May the Access version difference explain the difference?

Any idea would be appreciated.

Thanks!

View 4 Replies View Related

Combo Box With Multiple (possibly Duplicate) Payment Methods

May 1, 2006

Hello everyone. I'm a little new to the Access scene. I have a strong background in C, C++, Java, and assembly. Seems all the access books out there fail to mention the need to know vbs, heh.

Anyhow, I have a form ([WrkR]) based on a table ([ORDERS]) that has a customer's name ([Tables]![ORDERS]![name]), total payments to visa ([Tables]![ORDERS]![visa]), and total payments to cash ([Tables]![ORDERS]![cash]), and total payments to debit ([Tables]![ORDERS]![debit]). My form also has three rows, each containing a text box which holds how much a person has paid, and a combo box ([combo1], [combo2], [combo3]), that allows the user to choose what payment type was used. I have included a screen cap to demonstrate this.

I need to be able to create a function or macro, anything that will sum up the appropriate totals and store them in the corresponding columns in my table. Like in my example, there are 2 visa costs and a single cash cost that should be added up and stored in my table in the appropriate fields.

View 6 Replies View Related

General :: Slow Queries On Objects - Possibly Old Object Refs In MSysObjects?

Oct 10, 2013

I have a db that is having some strange speed issues on some very basic queries. Objects that have a rowsource/recordsource with a SQL statment in particular are really slow to populate. Likewise on deactivate/activate the report query seems to reload. I've put breakpoints in every object event with no stops out of the ordinary, and nothing seems unusual.

While I know MSysObjects is a user read-only table, I came across some records that reference objects that no longer exist in the front-end. Is this table cumulative? Is there any way to purge the deprecated records? I tried to turn on then turn off autocorrect features hoping that would trigger it to repopulate, but no luck.

I'm thinking this may be the source of the issue. Perhaps if it is looking for an object that it can not find (especially the ~sq_ unsaved queries) then it's looking to the wrong place on a lostfocus/activate/deactivate or similar event.

Some history on this file, it has been through many versions of Access starting with 2003, which I think is part of the issue as well. Shy of looping every object and replicating the read-write properties, I'm not sure where else to go with this.

View 2 Replies View Related

Forms :: Easy Way To Use Enter Key To Automatically Run A Macro?

Aug 21, 2014

know an easy way to use the enter key to automatically run a macro?

I have a login form which works fine. However, at the moment the user needs to type in username and password and then manually click on a 'log in' button. What I would like to happen is that if the user presses enter on the keyboard it will run the same macro as the log in button but without have to click on it?

View 2 Replies View Related

Forms :: Easy Way To Use Microsoft Outlook Address Book To Populate A Drop Down Combo Box?

Aug 6, 2014

Is there a quick and easy (or not so easy) way to use Microsoft Outlook Address Book to populate a drop down combo box? I am creating a form that needs to pull in Business Process Owners, all of which would be in our corporate address book.

View 1 Replies View Related

Forms :: Getting All Of Conditional Formatting Rules To Run On Forms

Mar 26, 2013

I'm having an issue getting all of my conditional formatting rules to run on my forms. For some reason it is only running the rule in the top position. I'm running different versions of this rule. Changing the field or table as needed to highlight duplicates in different colors. As you can see on page two of the attached PDF the entry for 33K6-4-3176-1 should be highlighted (yellow) because it is a duplicate. It only works if I change the order of presidance of my rules but then that negates my other rule. I'm not sure what is causing the conflict here.

If the field is red then the "Auth" field is a duplicte within that form if the firld is yellow then the entry in the "Auth" field appears on both forms. Red should take precidance.

Nz(DCount("*","tblRndfrm","[Auth] = '" & [Auth] & "'"),0)>1
Nz(DCount("*","OvrDrw","[Auth] = '" & [Auth] & "'"),0)>1

View 1 Replies View Related

Forms :: Conditional Formatting In Continuous Forms

Apr 14, 2014

I have a drop down box on a continuous form called (cmbItem).When the users choose Option 6 (Other) and on the open event I wish to show another field txtOther which allows the user to give a description of what 'other' means but I only want to show the field for that record. (the user could potentially have more than one record as other)Using conditional formatting I have managed to change the colours of the box so that the background is the same colour as the form unless other is chosen when it reverts to white. However I can't do the same with the border as this is not one of the options provided.

View 2 Replies View Related

Forms :: How To Put Conditional Display

Jun 30, 2014

I have two table data base (Patient Info) + (Referral Info) with one to many relationship.I devised a form to display patients information and their mental health diagnosis. On my referral form (subform) I have I have list box facility with various possible diagnosis. What I want to do is ... if the user selected "Dementia" from the look up/list box...

I want to display a Butterfly next to the patient's name (Main form)

(1) I don't want the picture to be in C drive rather I want the picture to be part of the database

(2) How can I put the conditional display (if Diagnosis is = "dementia" then Butterfly)

View 5 Replies View Related

Conditional Formatting Continuous Forms

Dec 2, 2005

:confused:
Hi. Does anyone know a way to change the colour of controls depending on their value in a continuous form?

I can change the colour of the current row in a continuous form, but I cannot adapt this so that it changes colour depending on the value (ie conditional formatting)

Ta

View 5 Replies View Related

Conditional Formatting On Continuous Forms

Nov 7, 2005

I have an accounting database with queues that list each requisition's important information (ID, vendor, dates, etc) plus the its status (not yet submitted, approved, ordered, delivered, filed, etc).

I'd like the font of the status field to change color depending on its value. I can't use the standard conditional formatting because there are more than 3 statuses.

I've tried an If/Then statement, but the form only looks at the status of the first record, then colors the font of the status fields for the consecutive records that same color no matter what their value. How do I get it to evaluate per record? As in, if the first record has a Submitted status, its font is blue, but the next record is Ordered so its font is red.

Here's my code, I used it in the OnOpen event for the form:
If req_process_status_rec_id = 2 Then
process_status.ForeColor = 13209
ElseIf req_process_status_rec_id = 1 Then
process_status.ForeColor = 8388608
ElseIf req_process_status_rec_id = 3 Then
process_status.ForeColor = 8388736
ElseIf req_process_status_rec_id = 4 Then
process_status.ForeColor = 16737843
ElseIf req_process_status_rec_id = 5 Then
process_status.ForeColor = 52479
ElseIf req_process_status_rec_id = 7 Then
process_status.ForeColor = 6723891
ElseIf req_process_status_rec_id = 8 Then
process_status.ForeColor = 16711935
End If

Thanks!

View 3 Replies View Related

Forms :: Conditional Lamp In A Form

Aug 28, 2013

I want to make a toolbar on top of my form and put the input label and a lamp behind it, in that,so when the operator enter a specific input a lamp near the input label in toolbar become green and when the operator not enter a value this lamp show red color.

View 1 Replies View Related

Forms :: Use Conditional Formatting With A Date?

Jul 11, 2013

Is there a way to use conditional formatting with a date? For instance, in my form I'd like the date field to turn red once a particular date has passed (to show that memberships are expired). Can this be done or am I better to just format a report of upcoming expiration dates?

View 1 Replies View Related

Forms :: Conditional Formatting For Checkbox?

Nov 24, 2013

I have a continuous form that has several checkboxes in it. Only one is initially enabled and I want the first to impact if the others are enabled, but only in the currently selected record.

I tried VBA but quickly found that this enables/disables the checkboxes in ALL of the records. Next I found out about conditional formatting--which does exactly what I want, but only works on text boxes and combo lists.

Is there any way that conditional formatting can be used to impact (vs. be impacted by) a checkbox?

View 6 Replies View Related

Forms :: Conditional Formatting Not On New Record

Jun 22, 2013

I have a continuous form and I'm using Conditional Formatting to color the controls that are not filled in.Ex: Expression Is = IsNull([txtNetProduct]). But I don't want to color the controls of a NEW record or row unless a record is created.

View 3 Replies View Related

Forms :: Conditional Mandatory Fields

Mar 20, 2013

Basically I have a form which records primary and secondary reasons for people writing off money, and in the secondary reasons I have an option for 'other', in case any of the other options aren't applicable. There is also a comments section on the form which is optional.

My issue is, I want the comments section to become mandatory if the 'other' option has been selected. I don't want it mandatory all the time, and I don't want it disabled if 'other' isn't selected, but I need to force people to write at least something in there if they have selected other.

I tried variations on code I found from other places but was unable to get this to function, and I am not sure if this can be done with validation or something like that.

View 14 Replies View Related

Forms :: Conditional Formatting In Tab Control

Nov 28, 2013

I have a Tab Control "box" on a form called PatientUpdate.

I would like to apply a conditional format on the second tab named Grp Bkg. In its properties, the Page Index is 1.

In the Tab resides a subform called Patient_GroupBooking which contains the field GroupBkg_Name.

CONDITION: if [GroupBkg_Name] is not null, make the tab Grp Bkg's font color red instead of the default black.

How to write this in Form Design Tools, Format, Conditional Formatting or other.

View 2 Replies View Related

Forms :: Conditional Formatting On Continuous Subform?

Jan 4, 2015

I have a continuous subform on a form. I have applied conditional formatting with expression is.. so that the formatting on one object (field on the subform) depends on whether there is anything in another field on the same subform named "Remarks".

My problem is that I this is not working to my expectations. First of all when the form with the subform is loaded the conditional formatting does not appear immediately. One has to run over the fields with the mouse with the hope that the conditional formatting appears.

Secondly the conditional formatting is not working well as they should.

View 5 Replies View Related

Forms :: Change Color With Conditional Formatting

Oct 18, 2013

I have a subform that is purely to display information (no edits will be made on it). The subform has a special color on it (company color) that I can not deviate from. My problem is the first record in the subform (displayed as a continuous form) gets the focus. The font is white and standard access has a white background. My end goal would be to elimnate the focus for any record in the subform (if it is possible). I know that I could change the color with conditional formatting but the colors in conditional formatting do not match the company color.

View 4 Replies View Related

Forms :: Subform Conditional Formatting If One Field Has Value?

Apr 10, 2015

I wanted to use a conditional formating when in a subform the field "Field_Name" has the value "Case Status New" and then the field "New_Value" should become orange color.

I guess it can be put togheter like a formula (expression) in the Edit Formating Rule.

View 4 Replies View Related

Forms :: Displaying Conditional Info On A Form

Oct 15, 2013

I am trying to create a form where I store the literacy and numeracy results of a group of students. So far I have designed a form which gives me a tick box as to whether the test they took was literacy or numeracy, then a box where I enter the score. Literacy tests are scored out of 72 and numeracy out of 50.

what I would like to do is write something that shows the literacy numeracy levels of each student after each test. So for literacy, the score ranges are as follows:

0 - 13 Below Entry 1
14 - 32 Entry 1
33 - 52 Entry 2
53 - 65 Entry 3
66 - 7 Level 1

What I would like to be able to do is tick whether or not they sat a literacy or numeracy test, enter the score and the db to come up with their level and display it on the form.

View 1 Replies View Related

Forms :: Conditional Formatting Field Color

Apr 16, 2014

I would like to have a conditional formating colour of green if the field contains a value like 10%..If the field has no value and is blank there will not be any background color change

View 1 Replies View Related

Forms :: Subform Conditional Formatting Of Sorts

Nov 2, 2014

I have a continuous form that is used as a sub form, and one of the fields is a check box which ideally I would like to set not visible; however, I would like the font colour of the other fields to turn red if this check box has a value of false.

View 9 Replies View Related

Forms :: Conditional Formatting For Choices And Printing In Color

Aug 23, 2013

I have an access form that has a dropdown box list of 10 choices.

For example:

The form states please choose 1, 2, 3 or 4 then the choice should print in BLUE.

They choose 5, 6, 7 or 8 Then it need to print in RED.

So forth and so on.

I am sure there is a code I need to type in the conditional formatting area that would reflect if [1], [2], [3], [4] then I choose the red color.

I do not know how to use VBL or coding.

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved