-
WSFrancois
AskWoody LoungerSee VBA Tips & Tricks: Create Database with ADO / ADO Create Database for code how to create your table.
You’ll have to create the table and each field. Access can’t assume anything. -
WSFrancois
AskWoody LoungerCan’t you do a DCount on the table or query with the same where condition as in the sql statement ?
Something like this :NumberOfRecords = DCount(“*”,”MyTableOrQuery”,”WhereStatement”)
If NumberOfRecords > 0 Then
DoCmd.RunSQL strSQL
End If -
WSFrancois
AskWoody LoungerHave a look at the procedure at Export data from Excel to Access (ADO) using VBA in Microsoft Excel
-
WSFrancois
AskWoody LoungerAccording to this thread Error communicating with the OLE server or ActiveX Control in Forms Coding in a Microsoft discussion group, several people solve this problem by copying the form, delete the form and renaming the copy to the old name.
As usual, try this on a copy of your database.
HTH
-
WSFrancois
AskWoody LoungerVicky,
Have a look at this post from Hans. You should do something similar.
-
WSFrancois
AskWoody LoungerNancy,
Please post in English so that everyone can follow the thread.
I found two problems in your database:
– the subform contains a subset of the whole table.
– the subform is sorted descendingI modify the function ChangeColor and the query QrysubLogboek.
Can you test the modification in your db ?
-
WSFrancois
AskWoody LoungerAre you saying that the conditional formating is not working or that the AlternateColor field is not correct ?
Maybe you can attach a stripped down version of your DB, so we can see what you have. -
WSFrancois
AskWoody LoungerNo, you can’t use conditional formating to change the backcolor of the detail section.
What you can do is create a textbox as great as the detail section, put it behind all the other textboxes and change the backcolor of that textbox with conditional formating. -
WSFrancois
AskWoody LoungerYou have to set the conditional formating for each field on the form individually.
You have to click on the little arrow (see attachment) beside the paint pot to change the color.
-
WSFrancois
AskWoody LoungerNancy,
I have been searching a little and I think I have to change my mind. Look at the attached mdb and see if you can do something with it.
I wrote a function to add a Boolean field to the recordset. That field change from true to false and vice versa each time the date change in the date field. Once that field is created, it’s easy to use the conditional formating to change the backcolor of each field in the form.HTH
-
WSFrancois
AskWoody LoungerHi Nancy,
I think this is not possible in a continuous form or in datasheet view. With some VBA, you could achieve this in a report.
-
WSFrancois
AskWoody LoungerAre you sure about the query names ?
In your first post you mention qryOrigRUGItems and now qryEditRUGitems -
WSFrancois
AskWoody LoungerWould’nt it be something like this :
UPDATE cr_SampleDataSet_HeaderInfo SET LoginID = ”, NetworkLogin= ”, ReturnedFromField=’Yes’ WHERE someIDfield IN (Select someIDfield from qryOrigRUGItems)
-
WSFrancois
AskWoody LoungerOpen the form in design view. Select the form. In the property window, look for the property “Filter On Load” in the tab Data. If it is set to yes, change it to No. Save the form.
-
WSFrancois
AskWoody LoungerAdd thes two lines to the code :
strDealer = “”
strDataID = “”Code:... Do While Not rs.EOF strUsername = rs!User strDealer = "" strDataID = "" Do Until strUsername rs!User strDealer = strDealer & "|" & rs!Dealer ...
![]() |
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
-
Network Issue
by
Casey H
36 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
6 hours, 4 minutes ago -
May 2025 Office non-Security updates
by
PKCano
6 hours, 30 minutes ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
8 hours, 25 minutes ago -
pages print on restart (Win 11 23H2)
by
cyraxote
7 hours, 41 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
10 hours, 37 minutes ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
10 hours, 39 minutes ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
18 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
2 hours, 22 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 5 hours ago -
How much I spent on the Mac mini
by
Will Fastie
4 hours, 46 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
43 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
1 day, 11 hours ago -
Setting up Windows 11
by
Susan Bradley
6 hours, 16 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 day, 6 hours ago -
Powershell version?
by
CWBillow
1 day, 7 hours ago -
SendTom Toys
by
CWBillow
4 hours, 7 minutes ago -
Add shortcut to taskbar?
by
CWBillow
1 day, 11 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 3 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 2 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
1 day, 9 hours ago -
We live in a simulation
by
Alex5723
2 days, 17 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 4 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
3 days, 6 hours ago -
Microsoft is killing Authenticator
by
Alex5723
8 hours, 16 minutes ago -
Downloads folder location
by
CWBillow
3 days, 12 hours ago -
Remove a User from Login screen
by
CWBillow
2 days, 8 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
3 days, 3 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
3 days, 4 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
1 day, 6 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.