-
WSMigAnt
AskWoody LoungerThanks for your response; but I tried that and that means every Group Header on the top of the page has a line and extra space; I don’t mind writing non-trivial VBA code.
-
WSMigAnt
AskWoody LoungerGot a error;
Update or CancelUpdate without AddNew or Edit. (Error 3020)
On a Microsoft Jet database, you called the Update or CancelUpdate method but did not use the AddNew or Edit method before writing data to a record.
On an ODBCDirect database, this error occurs when you attempt to write data to a record without first calling AddNew or Edit. -
WSMigAnt
AskWoody LoungerThe following code is on the ‘On Click’ Event
If [ReportingUnit] > “009” And [ReportingUnit] “060” And [ReportingUnit] “080” And [ReportingUnit] “083” And [ReportingUnit] “090” And [ReportingUnit] “500” And [ReportingUnit] “629” And [ReportingUnit] < "712" Then
[Org] = "NORT"
[Office] = "NORTHERN"
Else
[Org] = "UNDF"
[Office] = "OTHERS"
End If -
WSMigAnt
AskWoody LoungerIf you look at the Main Form I have included a Text Box that displays the current value of the SubForm’s sbfProducts Order By value. When you open the attached database you will see that the SubForm’s sbfProducts Order By value = strProductName DESC. When you click on the Report Preview Button the report Order By value is blank; look at the footer of the report or open the report in design view and you will notice that the Order By value does not = strProductName DESC. What I’m I missing here; why doesn’t the report use the value from the form?
-
WSMigAnt
AskWoody LoungerThanks; for the code and for the information between number fields and test fields. I have a new problem; I placed some labels on the subform called sbfProducts; I made the labels sort the Product ID and Product Name in ascending or descending order based on clicking on the labels. If I click on the Product Name label and sort the data by ascending order the form sorts the data; however when I click on the Preview Report command button the report displays the data that is displayed in the form; but not in the order that is displayed in the form. I have attached the database.
-
WSMigAnt
AskWoody LoungerThanks all of this works great; I placed a command button on the subform to print the a report of subform values; however the report printed all the records from the table and not the records that where filter on the subform by using LinkChildFields and LinkMasterFields value.
-
WSMigAnt
AskWoody LoungerDear Hans;
In a previous Post you provided code to use when using combo boxes to filter the records in a subform. This works great; however the selection criteria is not passed on to the subform. So when I print the a report based on the subform; the report contains all the records within the table. While the subform displays only the records based on the combo box selected. How do you pass on the combo box value to the FilterOn on the subform. Great Code for being able to allow multiple sorting values; how about code to allow multiple items for filtering? -
WSMigAnt
AskWoody LoungerThanks again it did the job; after re-reading your post and looking at the form as it opened. The form was always maximized; it was the Access Application Window that was not maximized. Once again thanks for your assistance.
-
WSMigAnt
AskWoody LoungerI want both the application window and the form to be opened and be maximized
-
WSMigAnt
AskWoody LoungerTried that already; before I responded. I guess I should have stated that. Sorry.
-
WSMigAnt
AskWoody LoungerThanks Very Much; Your “Automation” code worked; however opens the form in the minimized format. I liked the form to be opened in the max format. Any Ideas?
-
WSMigAnt
AskWoody LoungerI have responsibility for a Database that uses information (links to another database) from another Database. However; I don’t have responsibilty for that information; I don’t manage that unit. I link to the database and have a form that displays the information. Let’s say the user reviews the information and determines that they want to modify the linked information. I want to be able to have the current form use a command button to open the database and the form; so the user can modify the information. The users folder rights will be checked to make sure that the user has write/update rights; to update the information in the recently open database.
-
WSMigAnt
AskWoody LoungerI must apologies; I need to be a bit more detailed; on a previous post, you explained how to create labels that I move to the back of the each field on my form; the color of the labels is white. I chose a background color of purple and fore color of black for all of the text boxes and combo boxes; then I change the properties on text boxes and combo boxes Back Style to Transparent. When the I use the mouse to move to the field; the fore color is black and the background color is purple. Looks great and the users know where the cursor is at; but after a second or two, the field color inversion occurs. Then fields has a black background and a purple fore color combination does not look good; regardless; Is there a way to override the color inversion?
-
WSMigAnt
AskWoody LoungerThanks very much for the information; however we are using a CITRIX Client to push out many databases to all our customers. So whenever I make changes to the ‘Behavior Entering Field’ section of the Keyboard tab of Tools | Options… it will affect all the other databases. I don’t control all the Databases; So is there a way to do this for a specific database when it opens or to specific Form when it opens?
-
WSMigAnt
AskWoody LoungerSo the best thing is to have the combo box “after update” property move the focus to the next field? So the individuals entry will need to depress the tab key or enter key; before the cursor moves to the next field. Thanks for your response; it is very much appreciated.
![]() |
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
-
24H2 Installer – don’t see ption for non distructive install
by
JP
4 hours, 23 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
10 hours, 35 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
1 minute ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
2 hours, 23 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
16 hours, 27 minutes ago -
Setting up Windows 11
by
Susan Bradley
2 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
11 hours, 54 minutes ago -
Powershell version?
by
CWBillow
12 hours, 47 minutes ago -
SendTom Toys
by
CWBillow
7 hours, 27 minutes ago -
Add shortcut to taskbar?
by
CWBillow
16 hours, 43 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
1 day, 9 hours ago -
How can I install Skype on Windows 7?
by
Help
1 day, 7 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
14 hours, 43 minutes ago -
We live in a simulation
by
Alex5723
1 day, 23 hours ago -
Netplwiz not working
by
RetiredGeek
1 day, 9 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 11 hours ago -
Microsoft is killing Authenticator
by
Alex5723
23 hours, 16 minutes ago -
Downloads folder location
by
CWBillow
2 days, 18 hours ago -
Remove a User from Login screen
by
CWBillow
1 day, 13 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 days, 9 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
2 days, 9 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
11 hours, 21 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 days, 8 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 7 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 days, 22 hours ago -
Multiple Partitions?
by
CWBillow
2 days, 22 hours ago -
World Passkey Day 2025
by
Alex5723
18 hours, 54 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
4 days, 7 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
2 days, 8 hours ago -
Cached credentials is not a new bug
by
Susan Bradley
4 days, 11 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.