Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / General 2 / June 2007

Tip: Looking for answers? Try searching our database.

Query Problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rap43 - 29 Jun 2007 00:38 GMT
I have a table with 10 fields; four fields are for photographers assigned to
a particular event. There maybe up to four photographers at each event. Now I
find I need a report by dates and each photographer. A report with start date
and end date is no problem, but how to sort by one particular photographer
and report by dates is. Does anyone know how this can be done?

Thanks
Ken Snell (MVP) - 29 Jun 2007 01:51 GMT
May I strongly recommend that you redesign your table structure first. You
should not have four fields for four photographers in the table. You should
have a separate table (a junction table) that lets you assign photographers
to an event.

tblPhotographers
   PhotogID
   PhotogName
       (etc.)

tblEvents
   EventID
   EventName
   EventDate
       (etc.)

tblEventPhotog
   EventID
   PhotogID

Then you can run a query using the tblEventPhotog table and get your desired
results / report.

If you stay with your current setup, not only will your complexities just
increase as you continue to want more info from the database, but you'll
have to write a complex UNION query to get the results you want at this
time.
Signature


       Ken Snell
<MS ACCESS MVP>

>I have a table with 10 fields; four fields are for photographers assigned
>to
[quoted text clipped - 6 lines]
>
> Thanks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.