-
WSDarsha
AskWoody LoungerYou know, I think that could be what I intended to to in the first place.
Any idea how unhappy Access would be with a table with approx 170 fields – hopefully, the fields wouldn’t contain much text and there’s a fair chance that half or more of them would be empty.
We’ve got to potentially accomodate 32 plot numbers though, meaning 32 x 5 fields.
-
WSDarsha
AskWoody LoungerThe second table you describe would still have 70 fields (i.e most of the data). Most of the fields would be defined as very short text fields, storing one or two word answers/phrases or 2 character text codes.
I guess I was wondering whether it was worth splitting the questions into groups. I can’t see what that would achieve though really, it would just be a lot more work.
-
WSDarsha
AskWoody LoungerMay 9, 2008 at 4:49 pm in reply to: Copy value to control (specific record) on subform (2000/XP) #1108685A Totals query on the Keywords table seems to be working ok.
Next problem is allowing for multiple single quotes in the keyword ‘words’ – that for another thread though
Thanks again
-
WSDarsha
AskWoody LoungerMay 9, 2008 at 4:46 pm in reply to: Copy value to control (specific record) on subform (2000/XP) #1108684Thanks again.
I’m most of the way there but I think I might need to allow to the possibility of single quotes in the words (keywords) but I’ve started another thread for that one!
-
WSDarsha
AskWoody LoungerMay 9, 2008 at 4:05 pm in reply to: Copy value to control (specific record) on subform (2000/XP) #1108678Not sure, I’ve got horribly confused.
I only want the filter to return Documents containing any of the keywords picked, not all of them so its either lots of ‘ORs’ or an ‘IN’.
As I said before the SQL statement worked where the ‘Keywords’ field was an actual field (in the Documents table) not a calculated one in a query (using the concat function on tblKeywords)
(the documents and keywords tables have a one to many relationship)
Edit:
I guess I should be using a totals query instead (i.e. using the raw keyword data, the the concatenated output), something like
SELECT tblFiles.FileName
FROM tblFiles INNER JOIN tblFileKeywords ON tblFiles.FileID = tblFileKeywords.FileID
WHERE (((tblFileKeywords.Keyword) In (“BLUE”,”ORANGE”,”INDIGO”,”RED”)))
GROUP BY tblFiles.FileName; -
WSDarsha
AskWoody LoungerMay 9, 2008 at 3:27 pm in reply to: Copy value to control (specific record) on subform (2000/XP) #1108665Thanks Hans, that’s not quiet what I’m doing.
I have used the Concat function to populated a calculated field in a query ‘qryDocumentsWithKeywords’. I’m attempting to use this query, filtering the records returned by added a where clause using ‘IN’, to populate a list box.
Using
SELECT FeatureGroup, Report, DocumentType, Feature, Filename FROM qryDocumentsWithKeywords WHERE
Keywords IN (“BLUE”,”GREEN”,”INDIGO”) ORDER BY FeatureGroup, Report, DocumentType, Feature, Filenamereturns no records
-
WSDarsha
AskWoody LoungerMay 9, 2008 at 3:01 pm in reply to: Copy value to control (specific record) on subform (2000/XP) #1108657Cheers,
I seem to have got that working fine, just a small hitch on accessing the data in another query.
I have query comprising a list of documents with a keywords field (populated by the concat function).
I’m trying to constuct some sql to form the control source for a list box (listing documents), essentially I want to add a where clause on the keywords. The where clause is constructed by looping through items in another listbox and populating the bit between the brackets of an ‘IN’ statement e.g. (“BLUE”,”GREEN”,”INDIGO”)
This worked where the keywords were typed in a memo field but not now where they are calculated field.
This is the SQL for the documents list box
strSQL = “SELECT FeatureGroup, Report, DocumentType, Feature, Filename FROM qryDocumentsWithKeywords WHERE ” _
& vbCrLf & “Keywords IN (” & strIn & “)”Do you know if this (using ‘IN’) just won’t work here or if I’ve got something wrong?
-
WSDarsha
AskWoody LoungerThanks
I seem to be getting an error if I try to add a record for the first time (as I’m already on a new record I guess)
‘RunCommand acCmdRecordsGoToNew not available’
Edit.
I had
If Me!fsubDocument_KeywordsCont.NewRecord Then
instead of
If Me!fsubDocument_KeywordsCont.Form.NewRecord Then
Works okay now
-
WSDarsha
AskWoody LoungerThat’s it.
Many thanks
-
WSDarsha
AskWoody LoungerIs there any way that could that be achieved ‘on the fly’, creating an sql statement in vba?
The actual problem involves companies and products, the guy wants to allow the user to pick products from a list (multiselect) and return companies that sell them (or something like like – it wasn’t entirely clear, hence the student/subjects example). There would potentially be any number of criteria, each therefore requiring their own query , all then being joined – sounds hideous!
Is this one of those questions that sounds straightforward but isn’t?
-
WSDarsha
AskWoody LoungerEdited by HansV to update URL and make it clickable – see Help 19
This isn’t a question but the solution to a problem I had earlier today.
I’ve had a quick search and didn’t find anything here but apologies if I didn’t look hard enough and this info is duplcated elsewhere in the lounge.I was opening a recordset in code using ado but it was returning EOF = True. The query forming the source of the recordset definitely contained records.
I eventually realised this was because the WHERE criteria in the query contained the wildcard symbol * and ADO requires %.Changing the * to % in the query returned the correct number of records in the recordset.
BUT opening the query from the databse window returned nothing
Eventually found this article Using the Right Wildcard Characters in SQL Statements
And discovered changing the word ‘Like’ to ‘ALike’ allows the use of the ADO wildcard in the Access query grid
-
WSDarsha
AskWoody LoungerAh, that was rather obvious, I should try opening my eyes.
I suspect leaving it set to ‘No Duplicates’ was an oversight and that whoever changed it never imagined data being appended on-mass.
I’ve just found the same setting it in a couple of other tables.
Thank you for your help
-
WSDarsha
AskWoody LoungerHans
I posted the db a few posts up. It has all the records (119) and fields but is still fairly small.
I’ve been repeatedly running the query (getting an error each time) and can eventually populate the destination table with all the records from the source table. Knowing me it’s probably something obvious, but it just seems really odd.
-
WSDarsha
AskWoody LoungerRequired=Yes
Allow Zero Length=NoIn both tables.
-
WSDarsha
AskWoody LoungerI’ve just done the select query you suggested.
With the few added records the select query returns the same number. With the destination table cleared and empty the query returns nothing.
I’ve exported the 2 tables plus the query to another db – same behaviour.
?
![]() |
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
-
Malwarebytes 5 Free version manual platform updates
by
Bob99
1 hour, 50 minutes ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
8 hours, 25 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
17 hours, 19 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
18 hours, 39 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
13 hours, 12 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 7 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 8 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
3 hours, 32 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
12 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 19 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
1 day, 23 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
1 day, 23 hours ago -
Unable to eject external hard drives
by
Robertos42
10 hours, 16 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
1 minute ago -
Tech I don’t miss, and some I do
by
Will Fastie
3 hours, 50 minutes ago -
Synology limits hard drives
by
Susan Bradley
3 days, 3 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
2 days, 6 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 10 hours ago -
Upgrade Sequence
by
doneager
3 days, 3 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 8 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
2 days, 2 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days, 7 hours ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 8 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 7 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 1 hour ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days, 17 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
3 hours, 39 minutes ago -
Speeding up 11’s search
by
Susan Bradley
2 days, 6 hours ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
2 days, 18 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
5 days, 7 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.