i have a query in which i want to pull the parameter criteria from a combo box on a form. the combo box references a table that has no relationship to the other tables in the db… it is simply a criteria list… that means i want the query to pull the data from the table literally. the values in this table are things like 254. when this criteria is put directly into the criteria row of the query it works fine… but trying to pull it from the combo box doesn’t work…. any suggestions on where i might look for the culprit? i apologize if i am unclear… ask and i will try and exlain… thanks… in advance
![]() |
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 |
-
non related table holds criteria (Access97)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » non related table holds criteria (Access97)
- This topic has 3 replies, 2 voices, and was last updated 23 years, 1 month ago.
Viewing 0 reply threadsAuthorReplies-
WSFrancois
AskWoody Lounger -
WSJenn
AskWoody LoungerApril 1, 2002 at 1:23 pm #579644This is the sql statement for the query that the combo box should select the criteria for…
SELECT [State Legislators & Comm].LegTitle, [State Legislators & Comm].LegDist, [State Legislators & Comm].Party, [State Legislators & Comm].CAdd1, [State Legislators & Comm].MSSNYDist, [State Legislators & Comm].FName, [State Legislators & Comm].LName, [Current Event].[Proposed$], [Current Event].CkAmt, [Current Event].[Ck#], [Current Event].EvntDt, [State Legislators & Comm].PrevCycle
FROM [State Legislators & Comm] INNER JOIN [Current Event] ON [State Legislators & Comm].ID = [Current Event].ID
WHERE ((([State Legislators & Comm].ID)=[Forms]![Frm Operations]![Combo61]));Providing the sql above is correct, there may be an problem with what the combo box is selecting… i have the bound colum of the combo box equal to the field in the table that holds the actual criteria… Is this a possible avenue for my inability to generate a recordset with this query?
-
WSFrancois
AskWoody LoungerApril 2, 2002 at 2:49 pm #579949If combo61 contains the operators (= …) like you say in your first mail you will have to set the row source of the other combo by code.
Dim strSQL As StringstrSQL = "SELECT [State Legislators & Comm].LegTitle, [State Legislators & Comm].LegDist, " & _ "[State Legislators & Comm].Party, [State Legislators & Comm].CAdd1, " & _ "[State Legislators & Comm].MSSNYDist, [State Legislators & Comm].FName, " & _ "[State Legislators & Comm].LName, [Current Event].[Proposed$], [Current Event].CkAmt, " & _ "[Current Event].[Ck#], [Current Event].EvntDt, [State Legislators & Comm].PrevCycle " & _ "FROM [State Legislators & Comm] INNER JOIN [Current Event] ON [State Legislators & Comm].ID = " "[Current Event].ID WHERE ((([State Legislators & Comm].ID) " & [Forms]![Frm Operations]![Combo61] & _ "));" Me.comboxx.Rowsource = strSQL
Pay attention to the where condition : there is no = as the operator will be provided by combo61.
-
-
Viewing 0 reply threads -

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
-
Trump signs Take It Down Act
by
Alex5723
2 hours, 20 minutes ago -
Do you have a maintenance window?
by
Susan Bradley
2 hours, 46 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
3 hours, 54 minutes ago -
Success Knows No End in the World of Online Slots (Awaiting moderation)
by
isobelhartmann1
4 hours, 3 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
5 hours, 40 minutes ago -
Help with WD usb driver on Windows 11
by
Tex265
10 hours, 49 minutes ago -
hibernate activation
by
e_belmont
14 hours, 35 minutes ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
18 hours, 23 minutes ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
21 hours, 28 minutes ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
21 hours, 29 minutes ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
1 hour, 38 minutes ago -
Out of band for Windows 10
by
Susan Bradley
1 day, 2 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
1 day, 9 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
1 day, 16 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
2 hours, 50 minutes ago -
Auto Time Zone Adjustment
by
wadeer
1 day, 21 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
1 day, 18 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
23 hours, 31 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
11 hours, 57 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
18 hours, 21 minutes ago -
Apps included with macOS
by
Will Fastie
16 hours, 13 minutes ago -
Xfinity home internet
by
MrJimPhelps
13 hours ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 day, 14 hours ago -
Debian 12.11 released
by
Alex5723
2 days, 18 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
2 days, 22 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
2 days, 1 hour ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
5 hours, 11 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
3 days, 15 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
3 days, 5 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
1 day, 3 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.