If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Access > Print records datewise in columns

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-06-10, 02:38
Aliyan Aliyan is offline
Registered User
 
Join Date: Feb 2010
Posts: 4
Arrow Print records datewise in columns

Hi,

In my Access database Name, Address, InterviewDate, Shift and Status are some fields..

Every week I need to print a report for next week for the people to be called for interview on the basis of InterviewDate.
When enter a range of date for 6 days, the report should be printed in 6 columns for each day from Monday to Saturday and it should be separated for Morning Shift and Evening Shift.

Can anybody help me make a code for this using arrays?


Best regards,

Aliyan

Last edited by Aliyan; 02-06-10 at 13:09. Reason: spelling mistakes
Reply With Quote
  #2 (permalink)  
Old 02-06-10, 22:22
conagraman conagraman is offline
Registered User
 
Join Date: Nov 2009
Posts: 5
i would have a form with 12 sub forms each with their own query or sql statement with different criteria for each. or you could use a listbox and have it populated using the SQL Dlookup command.
Reply With Quote
  #3 (permalink)  
Old 02-07-10, 03:37
Poppa Smurf Poppa Smurf is offline
Registered User
 
Join Date: Jun 2007
Location: Sydney,Australia
Posts: 346
Print Records Datewise in Columns

Please post some sample data.

It can be done using a report. Do you want to enter a date range say 30 days and display the appointments or are you happy with just a six day date range?
__________________
Poppa Smurf
allanmurphy47@gmail.com
Reply With Quote
  #4 (permalink)  
Old 02-07-10, 08:07
Aliyan Aliyan is offline
Registered User
 
Join Date: Feb 2010
Posts: 4
Hi,
here is some sample data..
I am happy with just a six day date range because every week we need to take list..
Name, Address, InterviewDate, Shift, Status
Safwan,efefef,16/02/2010, AM,IN PROGRESS
Rabaca,jetair,15/02/2010, PM,IN PROGRESS
Ruby,4565,25/02/2010, AM,IN PROGRESS
JACOB,992,17/02/2010, AM,IN PROGRESS
JENNIFER,STREET NO.1, 16/02/2010,AM, IN PROGRESS
Mathews,Jabbar Road, 19/02/2010, AM, In progress
Sudesh, Cabbern park, 20/02/2010, PM, In progress
Bobban, Road no.2, 15/02/2010, PM, In Progress
Lissuy, Brigade road, 17/02/2010, AM, In Progress
Manoj, P.O. Box 995, 18/02/2010, AM, In Progress
Roy,efefef,17/02/2010, PM,IN PROGRESS
Moosai,Safari,15/02/2010, AM,IN PROGRESS
Sundar,4565,16/02/2010, PM,IN PROGRESS
James,9923,15/02/2010, AM,IN PROGRESS
Justin,STREET NO.1, 21/02/2010,PM, IN PROGRESS
Eliyas M,Main Road, 19/02/2010, AM, In progress
Jacob man, Cabbern park, 19/02/2010, PM, In progress
Bose, Road no.2, 17/02/2010, PM, In Progress
Jessica, Brigade road, 18/02/2010, PM, In Progress
Sreedhar, P.O. Box 992, 17/02/2010, AM, In Progress

Regards,
Aliyan
Reply With Quote
  #5 (permalink)  
Old 02-07-10, 09:38
pkstormy pkstormy is offline
Moderator
 
Join Date: Dec 2004
Location: Madison, WI
Posts: 3,925
I wouldn't necessarily concentrate on specifically using arrays. You can utilize a good combination of queries or a make-table query to achieve your results. How you setup those queries depends on how you've setup the fields.
__________________
Expert Database Programming
MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)
Reply With Quote
  #6 (permalink)  
Old 02-08-10, 01:17
Poppa Smurf Poppa Smurf is offline
Registered User
 
Join Date: Jun 2007
Location: Sydney,Australia
Posts: 346
Unzip the attached file note this was created using Access 2003. This database has the sample data supplied as per your previous post.

Open form frm_rpt_interview_dates, select the beginning date by highlighting a date on the calendar then click on the beginning date button, do the same for the ending date. Click on Preview and a report will be displayed listing the interviews scheduled for that period. You also have the option to email or print the report.
Attached Files
File Type: zip interviews_20100208_004.zip (36.8 KB, 75 views)
__________________
Poppa Smurf
allanmurphy47@gmail.com
Reply With Quote
  #7 (permalink)  
Old 02-08-10, 07:53
Aliyan Aliyan is offline
Registered User
 
Join Date: Feb 2010
Posts: 4
Thanks a lot my friend..

Aliyan
Reply With Quote
  #8 (permalink)  
Old 02-08-10, 08:05
Aliyan Aliyan is offline
Registered User
 
Join Date: Feb 2010
Posts: 4
Thanks a lot my friend..

Aliyan
Reply With Quote
  #9 (permalink)  
Old 02-08-10, 08:23
pkstormy pkstormy is offline
Moderator
 
Join Date: Dec 2004
Location: Madison, WI
Posts: 3,925
Nice example poppa smurf.

Do you mind if I post that in the code bank?
__________________
Expert Database Programming
MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)
Reply With Quote
  #10 (permalink)  
Old 02-08-10, 15:36
Poppa Smurf Poppa Smurf is offline
Registered User
 
Join Date: Jun 2007
Location: Sydney,Australia
Posts: 346
You can post it in the Code Bank if you wish.

This was a database that I found in a forum or on the web. I modified the layout to suit the requirements for my work area.
__________________
Poppa Smurf
allanmurphy47@gmail.com
Reply With Quote
Reply

Tags
ms access, print records columnwise, using array

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On