-
WSsocrates
AskWoody LoungerOctober 7, 2001 at 4:22 am in reply to: Union Query results – format problem -number shows (97) #545602The data type is Long.
I changed the position of the field MembershipLevel(which is currency data type) and that solved it.
That is very odd. I moved it in the following way. Compare it to my original code:SELECT tblPeople.MembershipLevel, tblPeople.FirstName, tblPeople.LastName, tblPeople.Title, tblPeople.Salutation, tblPeople.Address1, tblPeople.[Apt#1], tblPeople.City1, tblPeople.State1, tblPeople.Zip1, tblPeople.ReceiveMail1, tblPeople.Company, tblPeople.RenewalMonth, tblPeople.RenewalYear
FROM tblPeople
WHERE (((tblPeople.ReceiveMail1)=”YES”) AND ((tblPeople.RenewalMonth)>8));UNION SELECT tblPeople.MembershipLevel, tblPeople.FirstName, tblPeople.LastName, tblPeople.Title, tblPeople.Salutation, tblPeople.Address2, tblPeople.[Apt#2], tblPeople.City2, tblPeople.State2, tblPeople.Zip2, tblPeople.ReceiveMail2, tblPeople.Company, tblPeople.RenewalMonth, tblPeople.RenewalYear
FROM tblPeople
WHERE (((tblPeople.ReceiveMail2)=”YES”) AND ((tblPeople.RenewalMonth)>8))
ORDER BY tblPeople.Zip1;All I did was move this field to the beginning of the code, away from the RenewalMonth, and it solved the problem.
(There are a few other changes in the code but they had no effect. Once I moved this field in the code, the results did not have the $ in front.)
(Another way I solved it with the original code was to change the data type of RenewalMonth from Long to Text. That also solved it. These mysteries keep me awake. uuggghhhh)Soc
-
WSsocrates
AskWoody LoungerIt does not appear to be that.
After trying it a number of times, opening in design, saving, running it, and adding a field in design, I finally got it to work.However, when i tried to talk a friend thru the process over the phone, she got the same results.
Can’t figure it out.Soc
-
WSsocrates
AskWoody LoungerI think I figured it out. Is it or does it sound like a CrossTab query will not return duplicate records?
The company name was the same for a number of records.
I’m going to run a find duplicates query to do some more checking but was just wondering out loud.Soc
-
WSsocrates
AskWoody LoungerI see people have viewed it but no responses. Why? I will provide more info as this mystery baffles me.
1. 2 linked tables via MemberID. Primary table is tblPeople. Secondary table is tblAnnualAppealHistory.
2. tblPeople – MemberId, FirstName, LastName, Company, Telephone, etc.
3. tblAnnualAppealHistory – MemberId(foreign key) Year, Amount, Date.
4. tblPeople has 1427 records. 114 of those records are the name of a Company and therefore have no First or LastName data in their respective fields.
5. tblAnnualAppealHistory has 4 entries per record – for years 1997-2000. this is a total of 4X1427= 5708 records.
6. The base qry – qryAABaseAllMembers has the following fields selected in the design grid: MemberID, FirstName, LastName, Company, Year, Amount,Telephone, and LastNameOrCompany: IIf(IsNull([LastName]),[Company],[LastName]).
7. The results of this query work. i.e. I get 5708 records.
8. I created a Crosstab Query on top of the(recordSource) the base query. The selected fields were:FirstNamne, LastName, Telephone – these were the Row Headings.
8A) the Column headings were: Year. This gave me 4 columns with the Amount donated for each record in the corresponding year.
9. The results are not accurate. I expected to get 114 records with a blank First and LastName field, with a Telephone number and then the Amount donated for the specific Year.Instead I get only 9 records with empty/blank First and LastName fields. It is missing 105 records.
Any ideas?
Soc
-
WSsocrates
AskWoody LoungerAre you saying:
1. open the form in Design view.
2. Bring up the Properties sheet
3. Click the Data Tab
4. In the Order By row type: SELECT* FROM tblAAA_History ORDER BY Year;TIA
Soc -
WSsocrates
AskWoody LoungerShould I copy down any information from my BIOS settings? Will I lose anything?
TIA
Soc -
WSsocrates
AskWoody LoungerI’ve done more testing. It appears to work in my db and my version of MS Access 97. However the fix I alluded to in my previous post is not working in MS Access 2000. Any ideas?
The previous fix: open table in design; click properties; order by row = Year; This worked in my version of MS Access.
Soc
-
WSsocrates
AskWoody LoungerHi,
I went into the Table Properties and in the row – Order By – I typed in year. That seemed to work, but I haven’t done more than one test.Does that sound like it would work?
Soc
-
WSsocrates
AskWoody LoungerIt is windows 98. I read the article. I’ll try and reboot and see what happens. Thanks
Soc -
WSsocrates
AskWoody LoungerI looked at the sql but still can’t figure out anything.
As I said, I was able to create the report after I listed the columns in thecolumns heading row of the property sheet of the query.
When i did that and then ran the report wizard, the available fields showed up so I could select them for the report. Before that I could not do that.Now my question is this: the 1st ct query I made, i did not list the columns in the column heading row of the properties list. I was able to create a report based on the ct query.
Will the fact that I have not listed the columns in the property sheet/col. headings, affect anything later on.?
Why did it work in 1 case and not the other?Does it have to do with the prompt for criteria in 1 query and not in the other?
Soc
-
WSsocrates
AskWoody LoungerI found the answer but don’t know why it solved.
I opened the ct query in design view. I clicked in the background and then opened the properties list.
In the column headings row, I listed the column headings.
Everything then worked out to create the report.Now my question is this:
In the first ct query i did not go to the properties and did not list the column headings in the col. head. row. As a matter of fact , in the 1st one, that row is still blank, but the query and associated report work fine.Will the absence of this info cause a problem later on?
Soc
-
WSsocrates
AskWoody LoungerI’ll try that.
I also found out that a cross tab query does not deal with the following:
criteria row in query grid – [Enter the name of Board Member]——-for the reason that it does not recognize the [ brackets].
Have you seen that before?
Soc
-
WSsocrates
AskWoody LoungerThank you so much. This site is the best. I have learned so much and look forward to more learning.
It worked like a charm.
Soc
-
WSsocrates
AskWoody LoungerFrom MS Access 97 Help File:
Change the starting value of an incrementing AutoNumber field
For a new table that contains no records, you can change the starting value of an AutoNumber field that has its NewValues property set to Increment to a number other than 1. For a table that contains records, you can also use this procedure to change the next value assigned in an AutoNumber field to a new number.
1 Create a temporary table with just one field, a Number field; set its FieldSize property to Long Integer and give it the same name as the AutoNumber field in the table whose value you want to change.
How?
2 In Datasheet view, enter a value in the Number field of the temporary table that is 1 less than the starting value you want for the AutoNumber field. For example, if you want the AutoNumber field to start at 100, enter 99 in the Number field.
3 Create and run an append query to append the temporary table to the table whose AutoNumber value you want to change.How?
Note If your original table has a primary key, you must temporarily remove the primary key before running the append query. Also, if your original table contains fields that have the Required property set to Yes, the Indexed property set to Yes (No Duplicates), or field and/or record ValidationRule property settings that prevent Null entries in fields, you must temporarily disable these settings.
4 Delete the temporary table.
5 Delete the record added by the append query.
6 If you had to disable property settings in step 3, return them to their original settings.When you enter a record in the remaining table, Microsoft Access uses an AutoNumber field value 1 greater than the value you entered in the temporary table.
Note If you want to compact the database after changing the starting AutoNumber value, make sure to add at least one record to the table first. If you don’t, when you compact the database, the AutoNumber value for the next record added will be reset to 1 more than the highest previous value. For example, if there were no records in the table when you reset the starting value, compacting would set the AutoNumber value for the next record added to 1; if there were records in the table when you reset the starting value and the highest previous value was 50, compacting would set the AutoNumber value for the next record added to 51.
-
WSsocrates
AskWoody LoungerWorked perfectly. Thanks. I learned something brand new. I am learning alot.
Can you grade me on the following?
I responded to msg. 71249 with message 71294
Soc
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
33 minutes ago -
Network Issue
by
Casey H
7 hours, 4 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
12 hours, 32 minutes ago -
May 2025 Office non-Security updates
by
PKCano
12 hours, 59 minutes ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
14 hours, 54 minutes ago -
pages print on restart (Win 11 23H2)
by
cyraxote
14 hours, 10 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
17 hours, 6 minutes ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
17 hours, 7 minutes ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
8 hours, 51 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 11 hours ago -
How much I spent on the Mac mini
by
Will Fastie
11 hours, 14 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
6 hours, 25 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
1 day, 17 hours ago -
Setting up Windows 11
by
Susan Bradley
12 hours, 45 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 day, 13 hours ago -
Powershell version?
by
CWBillow
1 day, 14 hours ago -
SendTom Toys
by
CWBillow
53 minutes ago -
Add shortcut to taskbar?
by
CWBillow
1 day, 17 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 10 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 9 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
1 day, 15 hours ago -
We live in a simulation
by
Alex5723
3 days ago -
Netplwiz not working
by
RetiredGeek
2 days, 11 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
3 days, 12 hours ago -
Microsoft is killing Authenticator
by
Alex5723
14 hours, 44 minutes ago -
Downloads folder location
by
CWBillow
3 days, 19 hours ago -
Remove a User from Login screen
by
CWBillow
2 days, 14 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
3 days, 10 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
3 days, 10 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.