473,385 Members | 1,919 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,385 software developers and data experts.

Report from multiple queries

I have a table which includes employee information as well as the dates of about 5 differnent certifications. I am trying to create a query that will eventually be the basis for a report that will list the employee and any (and only) certifications that are due based on today's date. I have tried various methods but my limited understanding of Access and VBA has been hampering me.

Can anyone give some tips on how I might accomplish this. Thanks
Apr 1 '10 #1
3 1237
patjones
931 Expert 512MB
Can you point out what you've tried so far and post any code that you've written up to now? We'll use that as a starting point. Thanks.

Pat
Apr 2 '10 #2
Well, I've kinda went in a different direction. I am now trying to write code for the report that will be generated from the qry where only cert dates that are passed the current date (Date()) will appear. Same idea, just handling it from the report end instead of the query. I am code illiterate but have been trying to look through examples. I am trying to write code on the load filter that will make visible the fields that are past due and not the ones that aren't:

If "First Aid Due Date" >= Date Then Visible = True

Something like that for each of the certs (ie... CPR, Rigging, Dive Physical, AED)
Apr 5 '10 #3
patjones
931 Expert 512MB
Hi -

Usually the Visible property is connected to a particular form object. Also, in the comparison you need to write out the actual field name that you're comparing to the current date; so you would say something like:

Expand|Select|Wrap|Line Numbers
  1. If [DateOfFirstAid] >= Date Then Me.TextBoxName.Visible = True

Here you would replace "DateOfFirstAid" with whatever the relevant field name from your recordsource is, and "TextBoxName" with the name of the box you're filling in on the report.

I think however that the query approach is still the best way for you to go, and in the query criteria you would simply put [DateOfFirstAid] <= Now(). If you're building this in Query Design view, it's actually even simpler...on the criteria line of whatever the applicable date field is you'd put <=Now(). This will cause the query to pull only records where the certification in question is expired.

Let me know how it goes.

Pat
Apr 5 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: BlackFireNova | last post by:
Using Access 2002 I am writing a report which draws data from several different tables. I can't link all the tables in a query, as some can not be related without truncating the data. I plan...
3
by: Gord | last post by:
I would like to create a summary report from the results of 11 queries (based on 2 tables). All the queries have the same format and return 3 numbers (Count, Current Year Bal, Last Year Bal.)...
3
by: Edward | last post by:
ACCESS 2k I need to design a report based on a rota system for staff at various shops. The data is effectively stored in a single table, along the lines of: Initials (e.g. BH, FG, RM etc.)...
0
by: sundowner225 | last post by:
Could someone help me with an output problem? I have an access database that I need to create some xls output from. Basically, I have three tables: Faculty_Table: Fields=ID,Name, Type,...
3
by: wsox66 | last post by:
I am new to Access and need some help building a report. I have looked through previous posts on reports but none of them seem to answer my question completely. I am using Access 2003 and I have...
7
by: vaiism | last post by:
I am creating a report that outputs the contact information and details about a water treatment plant, and needs to include information about people who work there. If I tie all the information...
1
by: mskapek | last post by:
I need some advise on how to best create an Access 2002 report from multiple "total" queries, each which result in 3- 5 values that I need displayed on my report. Most of the queries do simple...
2
by: kfboren | last post by:
I am wondering if someone can help me. I have created 10 tables, 10 queries for the tables and 10 reports from the quearies. The creteria for the queries is the field named "month". I have created...
3
by: Brett Barry: Go Get Geek! | last post by:
Hello, I just started using Access 2007 after using Access 2003 for a long time. I've created all my queries and they work fine. However, either I forgot or it has changed but, how do I create a...
6
by: Brett Barry: Go Get Geek! | last post by:
Hello, I have a main report with a Record Source, a DateToday table, that has the current Month and Year. I have about 60 queries, each pulling different data via ODBC, that I am creating...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...

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.