Sign Up |  Live StatsLive Stats    Articles 35,345| Comments 159,788| Members 17,820, Newest waheguruhelpme| Online 203
Home Contact
 (Forgotten?): 
    Sikhism

   
                                                                     Your Banner Here!    

2 Questions...Please help

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 400 USD, Received: 35 USD (9%)
Please Donate...
Related Topics...
Thread Thread Starter Forum Replies Last Post
Questions for you - What Who is the God? Charanjot Tamber New to Sikhism 4 09-Dec-2010 09:16 AM
A Few Questions From Me Shanger Questions and Answers 33 25-Nov-2010 05:14 AM
Two questions to consider. jasdir singh Sikh Sikhi Sikhism 6 27-Sep-2010 12:27 PM
Two Questions about God gsingh2011 Sikh Sikhi Sikhism 22 10-Apr-2010 20:42 PM
The First Of Many Questions Strow Information Technology 2 27-Oct-2005 08:58 AM


Tags
questionsplease, help
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:13 AM
Ang's Avatar Ang
Guest
 
Posts: n/a
   
   
2 Questions...Please help

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
These questions may already be here but I can’t find them anywhere.

Q1- I have a report that I have set to give me start date and end date;
however, the person I am building this for wants to be able to enter the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/10553-2-questions-please-help.html
start and end dates in a form to pull the report. I had seen someone post
this website on another forum:
http://allenbrowne.com/casu-08.html,

I went there and tried it that way but I keep getting errors for these lines:

strWhere = strField & " Between " & Format(Me.txtStartDate, conDateFormat) _
& " And " & Format(Me.txtEndDate, conDateFormat)

DoCmd.OpenReport strReport, acViewPreview, , strWhere

I am not sure what I am doing wrong.

Q2-I have a table that list how many hours spent on each job, I have a
report that give me accumulative total per pay period spent on each. Now I
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10553
need a way to just pull each one and see how many hours worked on that job
for the quarter, week, month, pay period. What would be the best way to do
this?

Thank you in advance for your help!!





 
Do share your immediate thoughts or reactions on this issue? We value your views! Login Now! or Sign Up Today! to share your views with us.. Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:13 AM
Graham Mandeno's Avatar Graham Mandeno
Guest
 
Posts: n/a
   
   
Re: 2 Questions...Please help

Hi Ang

Answers inline...

"Ang" wrote in message
news:C170D4B1-EB8A-48C7-9DA6-0260031087A0@microsoft.com...
> These questions may already be here but I can't find them anywhere.
>
> Q1- I have a report that I have set to give me start date and end date;
> however, the person I am building this for wants to be able to enter the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10553
> start and end dates in a form to pull the report. I had seen someone post
> this website on another forum:
> http://allenbrowne.com/casu-08.html,
>
> I went there and tried it that way but I keep getting errors for these
> lines:
>
> strWhere = strField & " Between " & Format(Me.txtStartDate, conDateFormat)
> _
> & " And " & Format(Me.txtEndDate, conDateFormat)
>
> DoCmd.OpenReport strReport, acViewPreview, , strWhere
>
> I am not sure what I am doing wrong.


Neither am I because you don't say what the error is that you are getting.

Have you declared the variables strReport, strField and strWhere, and the
constant conDateFormat?

Does strReport have a valid report name in it?

Does your form have two textboxes named txtStartDate and txtEnddate which
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10553
both contain dates?

It should look something like this:

Const conDateFormat = "\#mm\/dd\/yyyy\#"
Dim strReport as String
Dim strWhere as String
Dim strField as String
strReport = "Your report name here"
strField = "[Your date field name]"
strWhere = strField & " Between " & Format(Me.txtStartDate, conDateFormat) _
& " And " & Format(Me.txtEndDate, conDateFormat)
DoCmd.OpenReport strReport, acViewPreview, , strWhere

>
> Q2-I have a table that list how many hours spent on each job, I have a
> report that give me accumulative total per pay period spent on each. Now I
> need a way to just pull each one and see how many hours worked on that job
> for the quarter, week, month, pay period. What would be the best way to do
> this?


Assuming you know (or can calculate) the starting and ending dates for each
of these periods, you can use the technique you have above.

Create your report grouped by job number, with a section footer and an empty
Detail section. In the section footer you can put the details of the job
(number, name, description, etc) and a textbox showing =Sum([HoursWorked]).

Then open your report with different start and end dates depending on the
period you want.
--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

> Thank you in advance for your help!!
>
>



Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:15 AM
Ang's Avatar Ang
Guest
 
Posts: n/a
   
   
Re: 2 Questions...Please help

  Donate Today!  
Graham, THANK YOU soooooooooo very much, you are a life saver!!!

"Graham Mandeno" wrote:

> Hi Ang
>
> Answers inline...
>
> "Ang" wrote in message
> news:C170D4B1-EB8A-48C7-9DA6-0260031087A0@microsoft.com...
> > These questions may already be here but I can't find them anywhere.
> >
> > Q1- I have a report that I have set to give me start date and end date;
> > however, the person I am building this for wants to be able to enter the
> > start and end dates in a form to pull the report. I had seen someone post
> > this website on another forum:
> > http://allenbrowne.com/casu-08.html,
> >
> > I went there and tried it that way but I keep getting errors for these
> > lines:
> >
> > strWhere = strField & " Between " & Format(Me.txtStartDate, conDateFormat)
> > _
> > & " And " & Format(Me.txtEndDate, conDateFormat)
> >
> > DoCmd.OpenReport strReport, acViewPreview, , strWhere
> >
> > I am not sure what I am doing wrong.

>
> Neither am I because you don't say what the error is that you are getting.
>
> Have you declared the variables strReport, strField and strWhere, and the
> constant conDateFormat?
>
> Does strReport have a valid report name in it?
>
> Does your form have two textboxes named txtStartDate and txtEnddate which
> both contain dates?
>
> It should look something like this:
>
> Const conDateFormat = "\#mm\/dd\/yyyy\#"
> Dim strReport as String
> Dim strWhere as String
> Dim strField as String
> strReport = "Your report name here"
> strField = "[Your date field name]"
> strWhere = strField & " Between " & Format(Me.txtStartDate, conDateFormat) _
> & " And " & Format(Me.txtEndDate, conDateFormat)
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10553
> DoCmd.OpenReport strReport, acViewPreview, , strWhere
>
> >
> > Q2-I have a table that list how many hours spent on each job, I have a
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=10553
> > report that give me accumulative total per pay period spent on each. Now I
> > need a way to just pull each one and see how many hours worked on that job
> > for the quarter, week, month, pay period. What would be the best way to do
> > this?

>
> Assuming you know (or can calculate) the starting and ending dates for each
> of these periods, you can use the technique you have above.
>
> Create your report grouped by job number, with a section footer and an empty
> Detail section. In the section footer you can put the details of the job
> (number, name, description, etc) and a textbox showing =Sum([HoursWorked]).
>
> Then open your report with different start and end dates depending on the
> period you want.
> --
> Good Luck!
>
> Graham Mandeno [Access MVP]
> Auckland, New Zealand
>
> > Thank you in advance for your help!!
> >
> >

>
>
>

Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

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

» Gurbani Jukebox
Listen to Gurbani while surfing SPN!
» Active Discussions
sikhism Who is "Mohan"?
Today 06:52 AM
21 Replies, 319 Views
sikhism need urgent advice.......
Today 06:46 AM
6 Replies, 72 Views
sikhism ਨਾਮਾ
Today 06:37 AM
2 Replies, 45 Views
sikhism Sikh Diamonds Video...
Today 04:23 AM
6 Replies, 112 Views
sikhism Are Creator and Creation...
Today 01:30 AM
44 Replies, 2,833 Views
sikhism Herman Hesse,...
Today 00:54 AM
13 Replies, 225 Views
sikhism On a Scale of Most...
Yesterday 21:42 PM
30 Replies, 1,277 Views
sikhism I became victim by...
Yesterday 19:50 PM
0 Replies, 39 Views
sikhism How important is Matha...
By Ishna
Yesterday 19:05 PM
58 Replies, 1,026 Views
sikhism Sikh Books downloads
Yesterday 15:39 PM
2 Replies, 62 Views
sikhism Salok Sheikh Farid ji...
Yesterday 09:35 AM
0 Replies, 43 Views
sikhism In Punjab, three farmers...
Yesterday 05:36 AM
0 Replies, 45 Views
sikhism Supernatural Sikhs, what...
Yesterday 03:45 AM
19 Replies, 408 Views
sikhism Sukhmani Sahib Astpadi...
26-May-2012 22:57 PM
0 Replies, 46 Views
Do You Think You Are...
26-May-2012 09:59 AM
94 Replies, 8,258 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.2

All times are GMT +6.5. The time now is 06:59 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.44633 seconds with 30 queries