-
WSjpgus
AskWoody LoungerThanks again for your replies.
Larry.. thank you for your suggestion..I did try it but it did not solve the error message.
Wendell.. Good idea… I will make the text box a combo box…I had not thought about the fact that you can type in a combo box.. (I was focused on the LONG drop down list and not making someone scroll through it)..Thanks
John… I probably am making this more complex than it has to be.. but I can not think I can simplify in the way that you have suggested.
A little more detail to explain why.
We use this form to
create a unique job number to fulfill line_items on orders.
Some line items have a quantity greater than one so we need more than one job number for those line items.the form is based on
tbl_job_Control_number
Which has many_to_one relationship to tbl_orders_details which of course has a many to one relationship to tbl_orders.
The combo box I want to filter ON exists to let the us assign a job number to every line_item (order_detail_id) on an order.. sometimes a line item may have a quantity of more than 1.. so that line item would need to have more than one jobs created to fulfill the order.
This assignment of a job_control_number_id to Order_detail_id ties our fabrication system to our order taking system.
The bound column is the order_detail_id and the second column is a concatenation of “line” & [oder_detail_id] & ” from order ” & [order_id]
So on the form the user selects from a list that reads like this item 8945 from order 387
I want them to be able to filter the records on the form by an order number.
So I in the former textbox now to be a combo box that lets call it cboFitler_criteria.. I want to select an order number and have the form return only those records that are jobs being made for that order.
If the order 317 had 3 line items on it Item A,B and C with quantities 1 of A, 2 of B and 5 of C then the filter would return 8 records.Basing the whole for on a querry that included all three tables joined and the right fields included would let me have an order field on my form and then I could just filter on that…. BUT the query will not allow records to be edited . which is why I am trying to do it with the unbound column of the combo box…. (and a LIKE statement with wild cards) like this.
Me.Filter = [cbo42].[Column](1) Like “‘%” & Me.cboFitler_criteria & “%'”
But that cboFitler_criteria seems to render (or resolve not sure of the proper vocab) to NULL.
Whew… Hope that makes it more clear of why I am making it so complicated. And why I am trying it this way. Any more thoughts.
Thanks again so much for your help.
Jason
-
WSjpgus
AskWoody LoungerThank you so much for your replies.
What I am doing is similar to the “use a combo box to filter records on a form” But I am using typed in text instead of a drop down selection… so I have a button to trigger it instead of the onchange event (although I guess I could use an onenter event or something like that)…
The idea is similar
The idea
1) an unbound control to enter the data to filter FOR2) a field in the record list to filter ON
In the case that seems more nomal and to which you I believe you are refering…
1) you select what you want to filter FOR in an unbound combo box drop down list (probably in the former header or footer)
2)you filter ON a certain field in your form to find matches
In my case
1) we want to filter FOR what you enter in an unbound text box (in the form footer)
2) we want to filter ON a certain field in the record list BUT that field happens to be a combo box
AND not only is it a combo box but I want to inspect (and filter ON) the second column of the combo box for matches. NOT the bound column.
I hope that helps explain what I am trying to do a little bit more clearly. Thanks!!
Jason
-
WSjpgus
AskWoody LoungerHello.
I am now trying this.x on the form
txt_orderinfo
its data source is =[cbo42].[Column](1)The text box shows column 2 of my cbo42 combo box
This works properlySo now txt_orderinfo holds the the data I want to be examined and matched by the filter.
I then have an unbound textbox in the form footer where you can enter the text you want to filter for
And a Button you click with this CODEPrivate Sub cmd_ordernum_Click()
Me.FilterOn = False
Me.Filter = Me.txt_orderinfo Like “‘%” & Me.txt_ordernum & “%'”
Me.FilterOn = True
End Subclicking produces
runtime error ’94’
Invalid use of null
In debug window…Hovering over it…Me.txt_orderinfo resolves as NULL
Any thought would be greatly appreciated.
Thank you
Jason
-
WSjpgus
AskWoody LoungerIan.
That did it. Thanks. I had an extra set of single quotes making it be evaluated as text?
Thanks very much, again.
Jason Gustafson
-
WSjpgus
AskWoody LoungerHans.
Thank you. Awesome, as always.. Gonna take a bit to try this out. Ill post back when I do. Thanks again.
Jason
-
WSjpgus
AskWoody LoungerThank Hans.
The normal usage is daily around lunch and around office closing.. but it is not reliable that it will get used daily…or at any specific time.
I think using the windows scheduler and the .bat to open the .mdb would work fine as trigger.
Once we have the trigger triggering right…
I have no clear idea on how to create the query that checks for null and sends an email if it finds null.
Thanks
Jason
-
WSjpgus
AskWoody LoungerThanks Hans.
It is not open all the time, but possibly we could keep it open.
Or run a .bat to open it?
Thanks.
Jason
-
WSjpgus
AskWoody LoungerHans.
Thank you!! As always you are on it. It works. Thanks again.
Jason
-
WSjpgus
AskWoody LoungerHans.
thanks for the reply.
? CurrentDb.TableDefs(“tblCustomers”).Connect
does return the DNS string. It contains P99 (thought the DNS defined on this PC is for ZEBRAserver.com)Tried it again after using the linked tables manager to refresh the tables links ..
? CurrentDb.TableDefs(“tblCustomers”).Connect
returns the DNS string… still with P99
Though the tables connect so the mdb is using zebraserver.com (somehow)Tried it again after Compress and Repair. Tables connect fine but the command still returns P99
Any more thoughts.
Thanks
Jason
-
WSjpgus
AskWoody LoungerHans.
Thanks. Got it working…Great solution help for my mediocre table design.
Should I have designed my tables another way?
tbl_products
tlb_products_price_affecting_aspects
tbl_products_to_products_affecting_aspectsOr some better way?
Thanks again.
Jason
-
WSjpgus
AskWoody LoungerThank you Hans.
The mdb is attached (stripped and zipped)
In factors table I added a field to roughly describe what that factor is to be used for.
Thanks
-
WSjpgus
AskWoody LoungerIndeed it does work perfectly.
Thank you very much Hans.
Very truly yours.
Jason
-
WSjpgus
AskWoody LoungerThank Hans.
If I were to create say 4 list boxes. Each to display 25 items.
How could I tweak the list box row source property to do that
and
How could the allenbrowne code be tweaked to pass any and all values selected in any and all of the textboxes to the report query?Thanks.
Jason
-
WSjpgus
AskWoody LoungerThank you Hans. As always. Your instructions worked perfectly.
I used the following and it worked.
placed image file in same folder as MDB. Named image back.jpg
Then used this code.Private Sub Report_Open(Cancel As Integer)
Me.Picture = CurrentProject.path & “back.jpg”
End Sub ‘Form_Open(Cancel As Integer)
-
WSjpgus
AskWoody LoungerYou are so very GOOD my friend.
On first test, your code worked perfectly on my test data. Will play more tomorrow on various situations.
Thank you Hans. I truly appreciate it.
Regards.
Jason
![]() |
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
-
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
5 hours, 33 minutes ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
9 hours, 32 minutes ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
9 hours, 33 minutes ago -
Unable to eject external hard drives
by
Robertos42
9 hours, 10 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
2 hours, 51 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
9 hours, 38 minutes ago -
Synology limits hard drives
by
Susan Bradley
1 day, 13 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
16 hours, 11 minutes ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
1 day, 19 hours ago -
Upgrade Sequence
by
doneager
1 day, 13 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 13 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
11 hours, 58 minutes ago -
The incredible shrinking desktop icons
by
Thumper
2 days, 16 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
2 days, 18 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 13 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 3 hours ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
3 days, 3 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
2 days, 8 hours ago -
Speeding up 11’s search
by
Susan Bradley
16 hours, 1 minute ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
1 day, 3 hours ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
3 days, 17 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
4 days, 1 hour ago -
24H2 fixed??
by
CWBillow
2 days, 17 hours ago -
Uninstalr Updates
by
jv16
4 days, 6 hours ago -
Apple zero days for April
by
Susan Bradley
3 hours, 4 minutes ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
3 days, 3 hours ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
5 days, 5 hours ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
4 days, 12 hours ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
4 days, 19 hours ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
5 days, 13 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.