-
WSbandido
AskWoody LoungerHi Andrew
Many thanks for your quick response. I used the vba code as a This Workbook On_Open procedure and it works beautifully. It’s exactly what I’ve been looking for.
Regards
Rob -
WSbandido
AskWoody LoungerThanks John for the sample db. Apparently, my problem was in the query. Essentially, the only difference between yours and mine was that in the videoid column (the second in the QBE grid) you had inserted “Group by” whereas mine did not. I changed my query accordingly and it now works. Very odd.
Still, your help has been much appreciated. Sorry about the naff terminology – I’m still learning.Rob
-
WSbandido
AskWoody LoungerThanks for the responses.
On reboot I was “allowed” to delete the .ldb file. The original now opens and closes without problems.
Again thanks. This is a fantastic forum. More power to Woody’s elbow! (Colloquial expression) -
WSbandido
AskWoody LoungerProblem is half-solved. I have been able to copy the original file and paste it in a diiferent folder from where it opens with no problem. However, I am still unable to delete either the original file or its associated .ldb file – Access denied! Any suggestions?
-
WSbandido
AskWoody LoungerThanks guys for your time and suggestions. At last, I’ve achieved what I set out to do. The query I used in my original DLookup was a [CountOf video number] based on a selected video in combo box. I set up another query (qry_available)which just listed instances of the selected video stored in the member_video table. In the unbound text box I used a DCount function to display the count of videos returned by qry_available. In the Name of Video combo box I requeried qry_available when a selection was made and now it works perfectly. What I don’t understand is that the Dlookup I originally used should have combined the two-stage process (query then count) into one (display CountOfvideo number from qry_numavail). Still, It now does its job. Again, many thanks, all.
Rob -
WSbandido
AskWoody LoungerThanks for your response. Yes, numavail is the name of the query which displays the accurate value of 3 in the CountOfvideo field when the query is run and the name of the test video is typed into the parameter message box. This is what is driving me mad. The combo box with the drop down list of videos and the text box in which I want to display availability is situated on the same form. Would this create a problem?
-
WSbandido
AskWoody LoungerThanks for your time. I’ve done as you’ve suggested but an error#, appears in the box. I’ve checked all names used and the syntax but I’ve drawn a blank. What’s so frustrating is that the query, on its own works fine.
The expression I’ve used is: =DLookup(“[CountOfvideo]”,”numavail”).
If you have the time(or the inclination) do you have any suggestions? -
WSbandido
AskWoody LoungerThanks for the response. I have managed to build a query that correctly returns the count of video numbers based on a selected video in a combo box. However, I am having difficulty in displaying this result on an unbound control as you suggested. Would you run through the steps to accomplish this? Also, I don’t know how to use a dlookup on a form. I would be grateful for your help.
Rob -
WSbandido
AskWoody LoungerTake a look at this site which offers a very elegant solution to your problem. Although it is a doctor’s appointment system, it is essentially the same idea, ie, to avoid booking clashes. This solution provides a drop down list displaying only those appointments which are free.
http://www.advanced-ict.info/databases/clash.html%5B/url%5D Edited by Wendell to activate link 09-Oct-02 17:34 MDT (UTC-7)
Rob
-
WSbandido
AskWoody LoungerHi Mark
Your first suggestion on the list worked a treat. I wish all problems were so easily solved.
Again, many thanks for your help and time.
Rob -
WSbandido
AskWoody LoungerHi MarkJ
Many thanks for your previous help and the useful splash screen. However another problem has emerged with the calendar control. I have used it successfuly over the weekend at home but, after downloading it today for use in my school, on double-clicking the date text box to call up the popup, I get an error message. This reads “Compile error: Can’t find project or library” and the offending code is presented. The Date argument is highlighted of the IIf function and is supposedly not recognized in the definitions. The same applies to the other popups. Any ideas?
Regards
Rob -
WSbandido
AskWoody LoungerHi MarkJ
Many thanks for the quick response. I eventually sorted out my problem. My date field in my appointments table is formatted for British dates (dd,mm,yy) whilst the calendar assumes American dates. I simply changed the calendar code from “mm,dd,yy” to “dd,mm,yy” and everything works perfectly. The pop up certainly adds a touch of class to the form and I can see that it will be so useful for other projects. Have you any other little gems? Again many thanks.Rob
-
WSbandido
AskWoody LoungerHi MarkJ
I,ve downloaded the brilliant calendar db you recommended to another lounger. I’ve managed to get the popup working when I select my date box on a form but when I select a date from the calendar, an apparently random date is placed in the box. When I try again, the calendar pops up at the last date and, after selecting a required date, the wrong date is input. At least the year is correct but month and day is not. Any suggestions? Many thanks for your time.Rob
-
WSbandido
AskWoody LoungerMany thanks for your help. Unfortunately, I am getting syntax error messages when I use the expression you supplied. I substituted the table and field names for those in my database. A little more guidance as to using the expression would be greatly appreciated.
![]() |
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
-
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
2 hours, 38 minutes ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
6 hours, 4 minutes ago -
W11 24H2 – Susan Bradley
by
G Pickerell
7 hours, 59 minutes ago -
7 tips to get the most out of Windows 11
by
Alex5723
6 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
12 hours, 8 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
3 hours, 2 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
11 hours, 26 minutes ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 55 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
19 hours, 41 minutes ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 hours, 53 minutes ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
4 hours, 8 minutes ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
1 day, 12 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
1 day, 21 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
23 hours, 34 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
1 day, 5 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
1 day, 16 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
3 days, 8 hours ago -
50 years and counting
by
Susan Bradley
6 hours, 18 minutes ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
9 hours, 7 minutes ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
3 days, 19 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
3 days, 19 hours ago -
Rethinking Extension Data Consent: Clarity, Consistency, and Control
by
Alex5723
3 days, 19 hours ago -
OneNote and MS Word 365
by
CWBillow
3 days, 21 hours ago -
Ultimate Mac Buyers Guide 2025: Which Mac is Right For You?
by
Alex5723
3 days, 21 hours ago -
Intel Unison support ends on Windows 11 in June
by
Alex5723
3 days, 21 hours ago -
April 2025 — still issues with AMD + 24H2
by
Kevin Jones
1 day, 12 hours ago -
Windows 11 Insider Preview build 26200.5518 released to DEV
by
joep517
4 days, 9 hours ago -
Windows 11 Insider Preview build 26120.3671 (24H2) released to BETA
by
joep517
4 days, 9 hours ago -
Forcing(or trying to) save Local Documents to OneDrive
by
PateWilliam
4 days, 18 hours ago -
Hotpatch for Windows client now available (Enterprise)
by
Alex5723
4 days, 5 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.