Query and Prioritise Data

Sam40mUK

Board Regular
Joined
Mar 18, 2002
Messages
95
Evening all I ask this on behalf of a friend.
I have been asked to analyse data using Access to determine out of a fair number patients how many were suspected of having cancer.
The Primary Key being the Patient Number, I was trying to Query two tables today, in the Referrals Table I have the id, the date, the priority. The Visit Table has id, visit date, various observations/history.
Using Criteria I wish Query the Visit Table for visits between specific dates and then prioritise the results using the Priority field in the Referrals Table.
I would welcome any help to point me in the right direction.
Thanks Jacci
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Bring both tables into the query design grid. If a Relationships exist between the 2 patient fields then you will see a join line between the 2 (Also if If they are both Primary ID ).

Now you can add the fields to the grid as required. The default join will return all of the records that match between the 2 tables. You can modify the join to return all from one and only those that match from the other by right clicking the line and selecting "Join properties".

Let me know if you need more help.
 
Upvote 0

Forum statistics

Threads
1,221,569
Messages
6,160,557
Members
451,656
Latest member
SBulinski1975

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top