-
WShasse
AskWoody Lounger(Edited by HansV to make url clickable – see Help 19)
What about…
http://support.microsoft.com/default.aspx?…kb;EN-US;283875%5B/url%5D
HOW TO: Transpose Data in a Table or Query in Access 2002 (also available for Access 2000 & 97)?
Assumption: you have no more than 255 records because the maximum number of fields in a Microsoft Access table is 255.
The second method (VBA function) seems the most valuable, but seems a bigto kill
*…
Still I hope it helps.
(thanks to google + search string “transpose table Access”!)* board: did you ever consider yet a smily expressing a fly? Might be useful in some expressions…
-
WShasse
AskWoody LoungerThanks Cecilia
. I’m just a bit embarassed for (instead of my Iif(…)-proposal) not having used the probably much faster Nz(), mentioned by our moderator(s). But that’s why it’s always so good to have them around
-
WShasse
AskWoody LoungerCecilia,
I don’t completely understand much of it but MAYBE I can help you with the last question.
First I want to generalise your question in order to know whether I got it right.
Does
“Has anyone been able to create a query that always has a set of standard rows, possibly displaying 0’s when there are no values? If I could do this, then my subreports would show the basic information”
mean something like:
“I have a crosstab query showing sales type (row header), region (column header) and sum of profits (value). What do I need to let all sales types (= rows) appear, instead of only those shown in the crosstab?”
Am I right?
Then, a first step might be taken by a next query combining (all fields from) your crosstab query on the left with a recordset representing all possible sales types (using a sales type lookup table or query) on the right. Now: right outer join them by their common field (sales type / sales type ID?). As such, the result should show a row for each possible sales type.
I don’t know how you should insert the ‘0’, but that must be possible too. In the worst case, by using a calculated field for each column header in your crosstab (e.g. “Region1_: Iif(IsNull(Region1);0;Region1)”.
I hope I don’t confuse you more that it helps
Hasse
ps I remember Hellen Feddema writing (more than?) once about handling empty (sub?)reports with code. So for that aspect of your question, searching the Access Archons might reveal something adjustable for your needs…(!?) -
WShasse
AskWoody LoungerOK,
I agree, of course, with Charlotte. No-one is forbidden to use identical ID’s (or…) for different entities, or different name for the same ‘field’ in different tables, or even in the same table. I just don’t consider it such a common practice that it doesn’t raise any questions when there’s a join presented between two fields which by their name, if not by content, might as well indicate something rather different.
Further I agree totally with HansV asking for a small ‘postable’ extraction of your database, so that we might examine it ‘live’…
ps Just one more try: don’t you have a combo box behind the ’empty’ field referring to a wrong data source? Then, it might find no match between the actual stored data and the combo box entry data, resulting in a blanc white field…
-
WShasse
AskWoody LoungerDear valuable members of the board,
from my humble experience, yes, I think this is a tip for general use.
It certainly seems a bit arrogant inserting this post now, in the end, but reading through this thread, scrolling down, in my head, I was already wondering why you didn’t use AutoExec to trigger a function (or another procedure through that function) at the startup of a database. As far as I used it (but this, to be said, not at a professional application level) it has always worked fine. For what it’s worth…
Hasse -
WShasse
AskWoody LoungerPeter,
I’m not sure if I totally understand your question, so don’t be too harsh on me if you don’t understand the answer
, but…
A try: can you somewhere in your data selection & … process rank your weeks from 1 to 52 (instead of their absolute values, which you currently use, I presume)? Such constant set of weeks nr. 1 => 52 might be easier to handle and as such a step closer to what you want to accomplish in your report,…E.g. Imagine a form with a text/combo box in which you enter/choose the start date of the primary selection. Use that date as a parameter in your query (by adding a calculated field, e.g. “StartDate: [forms]![EntryForm]![EntryControl]”). Derive the ranking of your weeks by comparing them to that StartDate: every ‘real, absolute’ week (e.g. 03/04/21 – 03/04/27) will be transformed in a ‘relative’ week number X where X = 1 for first week after (or including, if you wish) that date, X = 2 for second week after …
(To avoid negative or too high numbers, you’ll have to allow only a definit range of entry values in the text/combo box.) Now, you have a constant value set which you can use in the queries & reports based on it.Does this help you in any way?
If it didn’t, can you provide us some more detailed & step by step information about the precise structure (fields used,…) of the tables & queries you start from & use while preparing the data source for your report?
Hasse
-
WShasse
AskWoody LoungerAnother possible silly question…
How do you manage to join two tables by using different ID’s (song single)?
In plain English: if I translate your SQL, I read: show all records for which the SONG shared by the publishers is the same as the SINGLE you talk about.
If this is no mistake (and then, I still wonderhow you could get a decent record set as a result of this query), didn’t you forget a relation table SingleSongs somewhere inbetween tblSingles and tblPublisherShares?
-
WShasse
AskWoody LoungerHansV
you completed it better than I should have been able to (just one reason why it’s always so good to have somemoderators in the house
)
thanks!
Hasse -
WShasse
AskWoody LoungerCan’t this code in your form’s current event do the job?
(Or am I too fast…)Private Sub Form_Current()
If Me.Subformcontrol.Form.RecordsetClone.RecordCount = 0 And Not Me.NewRecord Then
Me.Subformcontrol.Visible = False
Else
Me.Subformcontrol.Visible = True
End If
End SubThen, you can still use your button to show the empty subform again in records with no sub-datasets when desired.
-
WShasse
AskWoody Loungerfruz,
I’ld think there are many freeware tools available to fullfill your needs. So I’ld think your question should be answered in no time at Google.In case you’ld like to create one on your own in Access, first think about how detailed it should be. Then, for example, you can build a simple ToDoList database with:
– one table: tblTasks = ID, project, task, entry date (date), deadline (date), priority (integer), remarks (memo), done (yes/no)
– one query: qryToDo = sorting tblTasks on deadline (ascending), priority (ascending), having one criterium ‘done = no/false’ => this can serve as your ToDo-list.Hasse
-
WShasse
AskWoody LoungerThanks for the suggestions!
(Freeware) Wilbur looks great at first sight. I don’t know yet how to incorporate this in an ‘outside the mailing software’ email archiving strategy, but that’s a next step. Anyway, I see immediately already some very interesting issues to apply it on too.
I didn’t have the chance to check out (not freeware) Boiler base though, but printed out the web site content for an easy read on the train, in case it offers better features… I’ll try to remember this thread and add more value if I find some other interesting alternatives.
So thanks again – you’re on the edge of saving a group plenty of time! -
WShasse
AskWoody LoungerHey,
does someone have any experience in joining files and e-mails in one system? Software providing document management facilities might do, but I’ld first like to explore other paths…Preferably, a good organisation & archiving of e-mail follows the structure of your directory structure. But still, then, you have everything in ‘seperate worlds. I would like to solve this by storing the mails & attachments on my pc or network. This should be done in a way that the e-mail is still searchable enough,… Moreover, this should reduce the migration efforts in case of a move to another e-mail software program…
Untill now, I’m experimenting by storing the mails as emyymmdd_from_to.txt & emyymmdd_from_to_attachment.xxx. But this most probably is a dead end which won’t work for general use…
I’ve read some seminar articles about the idea to store e-mails as XML files. The idea: most e-mail software products provide an export facility to store your e-mail as a txt file. As such, it’s a ‘small’ step to a facility which stores as a XML codes txt file, containing tags for all fields (from, to, cc, bcc, date, subject, body,…), optional contextual information and also a tag for the attachment(s) storage location (?), which guarantees the link to the those file(s), which need to be detached from the e-mail during the storage process. Files can be read by anything (based on) a (html?/)xml viewer. (I’ll skip here more technical details, conditions,…). The author suggested that the leeding software products should once develop features or extensions to make this possible.
Does anyone know yet of such things available/in development?
-
WShasse
AskWoody LoungerHey, Ifwatson,
honestly, ‘programmer’ might still be a bridge too far in my case. For example, I think I still lack some automatisms skilled IT-people have,… But I’m able to do moreless what I want in VBA. Access is more a hobby to me, but as I’m having the opportunity to amuse myself with it (he he) at my job as well, I-m a bit a professional as well (though I think most of us can say that :-).Thanks both for telling why ‘doing on your own’ what Access also offers, is sometimes unavoidable.
And by the way, Charlotte, thanks for your tip. Often, many ways lead to Rome but this is a neat suggestion, especially when you use continuous forms.
Hasse
-
WShasse
AskWoody Loungereven though I use it only for personal use, I can for sure recommend Fastmail too. They have a free (non commercial only) & paying (3 levels) service, each with its own limits on allowed number and size of e-mail per hour/day.
More info at: http://www.fastmail.fm/pages/fastmail/docs/pricingtbl.html -
WShasse
AskWoody LoungerHey, Ifwatson,
I’m happy I could, for a change, help someone else too :-).
Please notice that I changed my posts: I cut the code of the second function procedure, which factually wasn’t needed at all.
Just one last question, out of curiosity: why do you want to sort using code instead of the available Access sort buttons?
Hasse
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Can’t make Opera my default browser
by
bmeacham
1 hour, 52 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
1 hour, 59 minutes ago -
*Some settings are managed by your organization
by
rlowe44
11 hours, 58 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
14 hours, 12 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
14 hours, 36 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
23 hours, 37 minutes ago -
AI slop
by
Susan Bradley
22 hours, 48 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day ago -
Two blank icons
by
CR2
10 hours, 27 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 9 hours ago -
End of 10
by
Alex5723
1 day, 12 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
10 hours, 23 minutes ago -
test post
by
gtd12345
1 day, 18 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 8 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 22 hours ago -
Upgrading from Win 10
by
WSjcgc50
10 hours, 32 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
14 hours, 6 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 14 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 2 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 16 hours ago -
Are manuals extinct?
by
Susan Bradley
2 hours, 4 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 1 hour ago -
Network Issue
by
Casey H
2 days, 12 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 13 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 14 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 15 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 16 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 18 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 18 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.