473,325 Members | 2,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

If no data for dates entered, need message box

I enter data into a database that resides on our network. Other
employees can print reports from the database, but they have no way of
telling if I've entered all the data. For instance, on Mondays, I
have to enter 3 days of data - Friday, Saturday, and Sunday. Last
Monday, an employee came to me questioning the results on his
report. He had requested data from the weekend: Friday through
Sunday. But when he printed the report, I had only entered data from
Friday and Saturday. The report is based on a query where you enter a
beginning date and an ending date. Is there any code that can be put
in the OnClick event of the button the employee clicks to request the
report that will look at the dates and if no data has been entered for
that date range, a message box will come up that says something like
"data has only been entered through [Friday's date]"?

Thanks,
JD

Aug 1 '07 #1
4 2362
What if you have a seperate query that you check for the dates in and it
returns only the dates with data, then you can put a sub report on your
report that shows what dates have data

<jd****@yahoo.comwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
>I enter data into a database that resides on our network. Other
employees can print reports from the database, but they have no way of
telling if I've entered all the data. For instance, on Mondays, I
have to enter 3 days of data - Friday, Saturday, and Sunday. Last
Monday, an employee came to me questioning the results on his
report. He had requested data from the weekend: Friday through
Sunday. But when he printed the report, I had only entered data from
Friday and Saturday. The report is based on a query where you enter a
beginning date and an ending date. Is there any code that can be put
in the OnClick event of the button the employee clicks to request the
report that will look at the dates and if no data has been entered for
that date range, a message box will come up that says something like
"data has only been entered through [Friday's date]"?

Thanks,
JD

Aug 1 '07 #2
On Aug 1, 10:26 am, "Scott" <scott.n.j...@ns.sympatico.cawrote:
What if you have a seperate query that you check for the dates in and it
returns only the dates with data, then you can put a sub report on your
report that shows what dates have data
That's an idea....let me try that. Thanks.

Aug 1 '07 #3
I've been thinking about this and a subreport that shows what dates
have data won't work. We print reports all the time with a whole
fiscal year of data. That would make for a very busy subreport. I
think what I really need is some code that will run when the database
opens that will look at the table and come back with a message box
that tells the latest date entered. I'm sure this can be done, but I
can't seem to wrap my brain around it. Any ideas?

Thanks!
JD

Aug 3 '07 #4
Hi,
Have you conciderd having two dropdown boxes on the form whereby the
user selects a start date and selects an end date, this approach would
only allow valid dates to be selected provided
The dropdown boxes have that table as it's rowsource type and you in
the row source you would select distinct datefieldname.
bobh.

On Aug 3, 10:46 am, jdp...@yahoo.com wrote:
I've been thinking about this and a subreport that shows what dates
have data won't work. We print reports all the time with a whole
fiscal year of data. That would make for a very busy subreport. I
think what I really need is some code that will run when the database
opens that will look at the table and come back with a message box
that tells the latest date entered. I'm sure this can be done, but I
can't seem to wrap my brain around it. Any ideas?

Thanks!
JD

Aug 3 '07 #5

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

Similar topics

1
by: Paul Long | last post by:
Hi, I'm having a nightmare when trying to insert records into an Oracle database that contain dates. I've believe I should be using the to_date() function but I continually get the error: ...
8
by: netsurfer | last post by:
Hi: Have a question on making the date automatically filled in by what the user enters in by the date at the top. The date entered at the top would most likely be on a Wednesday then I need...
2
by: Douglas | last post by:
I have a Vehicle MOT field in my table which i have as a Date field I dont really want to hold the year, just 'dd mmm' as MOTs are the same date every year. I have the field on my form as a...
1
by: panche | last post by:
I'm developing a fairly simple user control that has two textboxes for date/time entry (a from date/time and a to date/time). One of my requirements is that there should be no button that sets...
17
by: Justin Emlay | last post by:
I'm hopping someone can help me out on a payroll project I need to implement. To start we are dealing with payroll periods. So we are dealing with an exact 10 days (Monday - Friday, 2 weeks). ...
3
by: colleen1980 | last post by:
Hi: Can any one please help me when user select 2 dates from DDLDate1 10/09/2006 and DDLDate2 10/12/06 and the name and it close the form. I need to create multiple records in the another table on...
9
by: Anneybo | last post by:
Alright, I give up! I'm asking the experts. I have created a database that calculates PTO for employees. I need to be able to cache the report by user entered dates and specific employee names. I...
15
by: Mr.Tom.Willems | last post by:
Hello people, I am ussing an MS access database to enter and manage data from lab tests. until now i was the only one handeling the data so i had no need for a controle on how missing data was...
6
by: BonnieW via AccessMonster.com | last post by:
I inherited a table. One field in this table is Date_Observed, and users entered data directly into this (I'm not sure there was an input mask; if there was, it was ignored). It is formatted as a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.