Our company is going to run a competition and the clients will get an entry for say every $1,000 they spend in the period. It is easy to determine the number of entries and use the INT function to set number of entries. What I cannot see at the moment is how to print the relevant number of entries. It was intended to use an Access Report to produce the entries that would then be cut to size and placed in a barrel. If any one could suggest a way of doing this it would be greatly appreciated. i.e have data e.g client xyz entries 3, client abc entries 1 etc etc.
Many thanks Allan
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Draw Enries (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Draw Enries (2000)
- This topic has 4 replies, 2 voices, and was last updated 21 years, 5 months ago.
AuthorTopicWSallanrp
AskWoody LoungerOctober 30, 2003 at 12:37 am #395804Viewing 1 reply threadAuthorReplies-
WSMarkLiquorman
AskWoody LoungerOctober 30, 2003 at 1:21 pm #737487About the only way I can think of is to create a separate table. Call this new table tblCounter, and it has only a single field (call this field Counter, which is an integer). If you expect no client to have more than 50 entries (for example), then populate tblCounter with 50 records, with Counter being from 1-50.
Then, create a query than includes both this new table and any other tables necessary to the the SumOfPurchases over the period. This will create a Cartesian join, which basically means that you will get 1 record for each customer for each of the 50 records in tblCounter. You then whittle this down to what you need by including a Where clause like this:
Int(SumOfPurchases)<=CounterThe
-
WSallanrp
AskWoody LoungerOctober 30, 2003 at 10:20 pm #737766Dear Mark, Many thanks for your prompt reply and this set me off in the right direction. Because I had already in the query the calculation of the number of entries, I created a table from the cartesion join and then ran a query with <=[entries] in the counter field. This was simple and works perfectly. many thanks again.
RegardsAllan
-
WSallanrp
AskWoody LoungerOctober 30, 2003 at 10:20 pm #737767Dear Mark, Many thanks for your prompt reply and this set me off in the right direction. Because I had already in the query the calculation of the number of entries, I created a table from the cartesion join and then ran a query with <=[entries] in the counter field. This was simple and works perfectly. many thanks again.
RegardsAllan
-
-
WSMarkLiquorman
AskWoody LoungerOctober 30, 2003 at 1:21 pm #737488About the only way I can think of is to create a separate table. Call this new table tblCounter, and it has only a single field (call this field Counter, which is an integer). If you expect no client to have more than 50 entries (for example), then populate tblCounter with 50 records, with Counter being from 1-50.
Then, create a query than includes both this new table and any other tables necessary to the the SumOfPurchases over the period. This will create a Cartesian join, which basically means that you will get 1 record for each customer for each of the 50 records in tblCounter. You then whittle this down to what you need by including a Where clause like this:
Int(SumOfPurchases)<=CounterThe
Viewing 1 reply thread -

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
-
Windows 11 Hotpatch (Awaiting moderation)
by
Hackmuss
1 hour, 17 minutes ago -
System Guard service error still won’t be fixed
by
Susan Bradley
53 minutes ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
2 hours, 14 minutes ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
3 hours, 26 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
7 hours, 40 minutes ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
8 hours, 3 minutes ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
15 hours, 43 minutes ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
1 hour, 44 minutes ago -
Select multiple emails and they all open up!
by
CeeJay
1 day, 8 hours ago -
How to remove an update preview
by
Gunny
13 hours, 33 minutes ago -
Third party add ins reminder
by
Susan Bradley
12 hours, 31 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
1 day, 2 hours ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
1 day, 13 hours ago -
How can I update “Explorer Patcher”
by
WSplanckster
1 day, 15 hours ago -
Check out the home page for Signal
by
CAS
1 day, 13 hours ago -
Windows 11 and Trial version of MS Office
by
Tex265
1 day, 12 hours ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
1 day, 19 hours ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
1 day, 19 hours ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
1 day, 19 hours ago -
Limits on User Names
by
CWBillow
1 day, 16 hours ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
8 hours, 40 minutes ago -
Non Apple Keyboards
by
pmcjr6142
16 hours, 58 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
1 day, 14 hours ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
1 day, 11 hours ago -
Error updating to Win11 0x8024a205
by
bmeacham
2 days, 13 hours ago -
default apps
by
chasfinn
19 hours, 24 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
2 days, 21 hours ago -
Adding links to text in Word 2000
by
sgeneris
1 day, 18 hours ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
2 days, 15 hours ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
4 hours, 2 minutes ago
Recent blog posts
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
- Woody Leonhard (1951–2025)
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.