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

Record for every date

Hi

Not 100% how to do this but I am sure it can be done, so your help would be greatly appreciated.

For example, I have a crosstab qry to count admissions and group by day. At the moment if there isn't an admission on a particular day then the records may jump from 15/11/2006 to 17/11/2006. What I would like to do is have a continued list to show the 16th as well showing a zero count.

I have created another table of all the dates which I think I need to include but not link and I need to filter out on the criteria line. I would prefer to use this than SQL

Am I making sense and can anyone help
Cheers
Julie
Nov 24 '06 #1
5 1197
nico5038
3,080 Expert 2GB
For this you need a so-called "outer join" query.
Place your table with dates and the other table in the graphical query editor.
Now drag the date from the tblDates to the other table and a line (the JOIN) will appear.
Double-click this line and you get a popup with 3 choices. Chose 2 or 3 making the tblDates "leading".
Now place the fields needed and save your query to get all values.

Clear ?

Nic;o)
Nov 24 '06 #2
Thanks Nic

I know what you mean, but I'm not sure that that is what I am looking for, so I'll have a sleep over the weekend and think about what I am really looking for and stop wasting everyones time

Cheers again Nic
Nov 24 '06 #3
NeoPa
32,556 Expert Mod 16PB
FYI
Access will happily (assuming no errors found) convert queries between Design view and SQL view.
This means you can provide SQL easily when you've only 'Designed' the query, and also that you can try out SQL posted here (or elsewhere for that matter) by pasting into a Query's SQL view and then just select Design view to see it in ordinary Design format.
Nov 24 '06 #4
PEB
1,418 Expert 1GB
Here it is good to say that you can introduce only the days from 1 to 31 without introducing all dates in the year....

But in this case will appear 31 for april! or for november... that isn't usual! /simply doesn't arrives each year ;) for my short life experience - never, but one beauty day maybe there will be 31 of november/

So the best should be to introduce into a different table all months and days without years!

Just like:
1/1
1/2
1/31
2/01
2/28
2/29 /february is bad month do the same problem as the days in the months/

When you have this info in your query you process your date like this:
Mynewdate: datepart("m",[Mydate])+"/"+Day([Mydate])

You save the query

Create new one
Add the previous query and your table with the days. Do a join between the Mynewdate column and the column with the days in your table! Click on the join and specify: Display all records from the table and the equal records from the query /your query and your table names on the respective places/

And everything is ok! No more need of reflexion!
Nov 26 '06 #5
Hi All

Thanks for your help and responses, I have got this one sorted now

Cheers
Mar 20 '07 #6

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

Similar topics

6
by: Rey | last post by:
How can I update every record of a given table one by one. I need to update a field (date) with a different, random date for each record. loop { generate random date; update one record with...
3
by: Rey | last post by:
How can I update every record of a given table one by one. I need to update a field (date) with a different, random date for each record. loop { generate random date; update one record with...
6
by: AA Arens | last post by:
Hi, I have a database with 2 main forms. Contacts and companies. I share the base with two others via LAN. On the companies form I have buttons to navigate throught the records (>400). We are...
1
by: Matt | last post by:
I have table that has the following fields: JobNumber WeekEndingDate ReportRequired_01 ReportRequired_02 every Friday morning the weekending date changes. I need to automatically generate...
4
by: ringer | last post by:
I have a db where each record is a certain task to be done. Each record includes the date the task should be completed. Some of the tasks are one time only but some are recurring. I have been having...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.