Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-24-2008, 06:48 PM
marianne raymond
 
Posts: n/a
comment recevoir des message et les envoyer

Bonjour,
je ne peut pas envoyer des message
et n'y en recevoir.
Pouvez-vous enrangé sa S.V.P

Merci!!!!






De: "TxBlueEyes" <TxBlueEyes@discussions.microsoft.com>
Objet: Help Pls - 1 Combo box and 1 Date Field on a form to create a repo
Date: 24 août 2008 13:22

Hi to all you wonderful ACCESS Guru's - I am definitely missing something...
I want a user to be able to create and view the report by the Team Lead they
choose from the combo box and a Date field
I have the combo box on a form with a "Run Report" command button - the
Combo Box is pulling from a "Team Leads" Table that houses all the Team
Lead's names. I want the "Run Report" to open up the "Y-T-D Team Lead Report
filtered by the choice the user made in the "cboteamlead" combo box...
Also, is there a way on the same form to have a date field based on a the
same query the Report feeds off of.. Date field name is "Monitor Date" from
table called "TEAM LEAD Track"... If so then the report could run based on
the "Team Lead Name and Monitor date"... Below is the vb code I did for the
"Run Report" Command Button, I havent added the Monitor Date yet, I wasn't
sure where to add it to the code.. So any help or suggestions would be
greatly appreciated... TxBlueEyes...
Below is the VB CODE so far...
DoCmd.OpenReport "Y-T-D Team Lead Report", View:=acPreview, _
WhereCondition:="[TEAM LEAD]= '" & Me.cboteamlead & ""

Reply With Quote
  #2 (permalink)  
Old 08-24-2008, 09:10 PM
=?Utf-8?B?V2F5bmUtSS1N?=
 
Posts: n/a
RE: comment recevoir des message et les envoyer

> DoCmd.OpenReport "Y-T-D Team Lead Report", View:=acPreview, _
> WhereCondition:="[TEAM LEAD]= '" & Me.cboteamlead & ""



DoCmd.OpenReport "Y-T-D Team Lead Report", acViewPreview, "", "[TEAM
LEAD]=[Forms]![Form Name]![Combo Name]", acNormal

Change Form Name and Combo Name to what you use in your aplication

Make sure the TEAM LEAD is on your report and it is the same as the bound
column of your combo



If you want to add a date criteria you should have something on your form
with a date - the date should also be in the details section of the report

Something like this
DoCmd.OpenReport "Y-T-D Team Lead Report", acViewPreview, "", "[TEAM
LEAD]=[Forms]![Form Name]![Combo Name]"And [Date in report]=[Forms]![Form
Name]![Date in form]", acNormal

There is a better way to do this. Use a query by form. Base the report on
a query. In the TEAM LEAD and date column use the form field as the criteria.

Just a thought

Hope this helps

--
Wayne
Manchester, England.



"marianne raymond" wrote:

> Bonjour,
> je ne peut pas envoyer des message
> et n'y en recevoir.
> Pouvez-vous enrangé sa S.V.P
>
> Merci!!!!
>
>
>
>
>
>
> De: "TxBlueEyes" <TxBlueEyes@discussions.microsoft.com>
> Objet: Help Pls - 1 Combo box and 1 Date Field on a form to create a repo
> Date: 24 août 2008 13:22
>
> Hi to all you wonderful ACCESS Guru's - I am definitely missing something...
> I want a user to be able to create and view the report by the Team Lead they
> choose from the combo box and a Date field
> I have the combo box on a form with a "Run Report" command button - the
> Combo Box is pulling from a "Team Leads" Table that houses all the Team
> Lead's names. I want the "Run Report" to open up the "Y-T-D Team Lead Report
> filtered by the choice the user made in the "cboteamlead" combo box...
> Also, is there a way on the same form to have a date field based on a the
> same query the Report feeds off of.. Date field name is "Monitor Date" from
> table called "TEAM LEAD Track"... If so then the report could run based on
> the "Team Lead Name and Monitor date"... Below is the vb code I did for the
> "Run Report" Command Button, I havent added the Monitor Date yet, I wasn't
> sure where to add it to the code.. So any help or suggestions would be
> greatly appreciated... TxBlueEyes...
> Below is the VB CODE so far...
> DoCmd.OpenReport "Y-T-D Team Lead Report", View:=acPreview, _
> WhereCondition:="[TEAM LEAD]= '" & Me.cboteamlead & ""
>
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Access


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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:45 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Mobile Phones | Mortgages | Personal Car Finance | Myspace Layouts | Debt Help



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114