473,785 Members | 2,878 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Report capturing data from 'red flagged' field

I am trying to capture data in a date parameter query that spans from
1 to 3 months. I have a field that is a checkbox that notes whether or
not this data is 'red flagged' (so you know, the red flagged data is
end of the month production that is reported in the following months
report)
I need to capture the red flagged production from the previous month
and the production from the entered month(s) not including the red
flagged production for the last month that was entered in the
parameter. Does anyone have any ideas on how to capture this?

Any help would be greatly appreciated

Thanks in advance,
Norma
nj**********@su scom.net
Nov 12 '05 #1
3 2018
Norma wrote:
I am trying to capture data in a date parameter query that spans from
1 to 3 months. I have a field that is a checkbox that notes whether or
not this data is 'red flagged' (so you know, the red flagged data is
end of the month production that is reported in the following months
report)
I need to capture the red flagged production from the previous month
and the production from the entered month(s) not including the red
flagged production for the last month that was entered in the
parameter. Does anyone have any ideas on how to capture this?

Any help would be greatly appreciated

Thanks in advance,
Norma
nj**********@su scom.net

Let's say the table is called Table1 and the field to compare is called
DateField. The primary key is ID, and you have a field called RedFlagged.

Create 2 queries. Select Table1. Drag the ID and RedFlagged fields to
the first 2 columns. In the criteria row for RedFlagged, enter True.
Move to the blank 3rd column and in the Field rowenter the following
Expr1:Month(Dat eField)
and in the criteria row enter
Month(DateAdd(" m",-1,Date())

This will select all redflagged records from the prior month. Since
this will pull up red flagged records from prior years, you might want
to simply exclude this third field and in the criteria row under
DateField enter
Between
DateSerial(Year (dateadd("m",-1,DateField)),M onth(dateadd("m ",-1,DateField)),1 )
And DateField - Day(DateField)

This will select all records from the first to last day of the prior month.

Save this query as Q1.

Now click on Query tab, select New/FindUnmatched wizard

Select Table1 and Q1, set the link between ID field and follow the
wizard steps. You will need to set a criteria to filter within a date
range. You enter enter under date field
Between [ENter From Date] And [Enter To Date]


Nov 12 '05 #2
I am getting an error message. It says that I have too many
Parenthesis. It does not like the ending of the statement:
Between
DateSerial(Year (dateadd("m",-1,DateField)),M onth(dateadd("m ",-1,DateField)),1 )
And DateField - Day(DateField)
It highlights the next to the last parenthesis. Any ideas??
And thanks so much for your help so far..
Norma

Salad <oi*@vinegar.co m> wrote in message news:<hL******* **********@news read1.news.pas. earthlink.net>. ..
Norma wrote:
I am trying to capture data in a date parameter query that spans from
1 to 3 months. I have a field that is a checkbox that notes whether or
not this data is 'red flagged' (so you know, the red flagged data is
end of the month production that is reported in the following months
report)
I need to capture the red flagged production from the previous month
and the production from the entered month(s) not including the red
flagged production for the last month that was entered in the
parameter. Does anyone have any ideas on how to capture this?

Any help would be greatly appreciated

Thanks in advance,
Norma
nj**********@su scom.net

Let's say the table is called Table1 and the field to compare is called
DateField. The primary key is ID, and you have a field called RedFlagged.

Create 2 queries. Select Table1. Drag the ID and RedFlagged fields to
the first 2 columns. In the criteria row for RedFlagged, enter True.
Move to the blank 3rd column and in the Field rowenter the following
Expr1:Month(Dat eField)
and in the criteria row enter
Month(DateAdd(" m",-1,Date())

This will select all redflagged records from the prior month. Since
this will pull up red flagged records from prior years, you might want
to simply exclude this third field and in the criteria row under
DateField enter
Between
DateSerial(Year (dateadd("m",-1,DateField)),M onth(dateadd("m ",-1,DateField)),1 )
And DateField - Day(DateField)

This will select all records from the first to last day of the prior month.

Save this query as Q1.

Now click on Query tab, select New/FindUnmatched wizard

Select Table1 and Q1, set the link between ID field and follow the
wizard steps. You will need to set a criteria to filter within a date
range. You enter enter under date field
Between [ENter From Date] And [Enter To Date]

Nov 12 '05 #3
Norma wrote:
I am getting an error message. It says that I have too many
Parenthesis. It does not like the ending of the statement:
Between
DateSerial(Year (dateadd("m",-1,DateField)),M onth(dateadd("m ",-1,DateField)),1 )
And DateField - Day(DateField)
It highlights the next to the last parenthesis. Any ideas??
And thanks so much for your help so far..
Norma


Brain Freeze.

Please change
DateField
to
Date()
with the parenthesis.

Here is my SQL Statement where I want to select all records from the
prior month that have been redflagged. The table/query field names are
ID, DateField, and RedFlagged.

SELECT ID
FROM Table1
WHERE DateField Between
DateSerial(Year (DateAdd("m",-1,Date())),Mont h(DateAdd("m",-1,Date())),1)
And Date()-Day(Date()) AND RedFlagged = True;

Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
388
by: Norma | last post by:
I am trying to capture data in a date parameter query that spans from 1 to 3 months. I have a field that is a checkbox that notes whether or not this data is 'red flagged' (so you know, the red flagged data is end of the month production that is reported in the following months report) I need to capture the red flagged production from the previous month and the production from the entered month(s) not including the red flagged production...
9
3077
by: Colin McGuire | last post by:
Hi, I have an report in Microsoft Access and it displays everything in the table. One column called "DECISION" in the table has either 1,2, or 3 in it. On my report it displays 1, 2, or 3. I want to appear in the report is Yes, No, or Maybe. What do I need to do to change what appears in the report/what term do I need to search out in Google? Thank you Colin
3
2350
by: bbdata | last post by:
what would be an equivalent of OnCurrent event/Forms , in detail section of the Report? i have a subreport with just one (visible)field, bounded to a query. subreport is in detail section of main report. i want to display all the records in the query if the value of field X in main report is 1, and just one record from the query ( with an invisible field in sbReport set to 2), in any other case. can i change recordsource for subReport for...
1
1406
by: MoreQsThanAs | last post by:
I want to include some summary data in a report section header. In the example below I want to put in the "Apples" section header the date of the sale of the last red apple. Everything I try only produces the date of the last record in that section (10/3/05 instead of 10/2/05, in the example). Is there a way to effectively enter something into a text field with a meaning like: max( where =Red) EXAMPLE REPORT:
2
1471
by: pripa | last post by:
#1 in my report i need to group my clients and print a color code "Green", "Red" and "Blue" above names of the clients depending on values in the order form. Is it possible to print it from the single textbox (right now I have 3 textboxes with =IIf(=1, "Green") in first one. =IIf(=2, "Red") in second box etc. Which makes printout look very bad. #2 On a report i have a few textboxes that get data based on "count function" =Count() or "if...
3
36470
by: Tmuld | last post by:
Hello, I was provided a .rpt file which is Crystal Reports report. It opened with VS .NET 2003. On the left side in the Field Explorer - there are seveal categories - Database Fields - Formula Fields
3
2417
by: T | last post by:
I'm trying to determine the useage of varioius reports I have. I need the following to occur when a report is opened, get the name of the report, datetime, username. I created a tblLog w/reportname, reportdate and theuser. This is the module I have for capturing the username. ' This code was originally written by Dev Ashish. ' It is not to be altered or distributed, ' except as part of an application.
6
2817
by: tmoon3 | last post by:
Hello All, I have a report where it lista employees that need to have an eval done in the next 30 days. If the employee has a 3 month, 6 month or 12 month eval due in the next 30 days it lists the employee name, 3 month eval due date, 3 month eval score, 6 month eval due date, 6 month eval score, and 12 month eval due date and score. I would like the report to bold or highlight either the 3, 6 or 12 month eval due date that made teh ee...
0
955
by: Fidell | last post by:
I am using data report with ms access database. I want to the rptTextbox color to change based on the value of the the recordset field. Eg to appear red if the field is "FAIL" and black if it "PASS". My code is cmdShowReport_Click ' '''''''the STATUS field is bound to Text1. """"" rs is recordset If rs.Fields("STATUS") < 40 THEN DataReport1.Sections(Section1).Controls("Text1") =vbRed else DataReport1.Sections(Section1).Controls("Text1")...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10329
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10152
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8974
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7500
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3650
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2880
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.