-
WSShane Sargent
AskWoody LoungerAs an aside for the future, there are a couple of actions you might want to take:
(1) Before running a delete query, check out the result set in a select query. If you’re expecting to delete 10 records, and your select query shows you that 10,000 meet the criteria, it’s time to take a harder look at what you’re up to.
(2) In another database expressly used for backing up historical or unwanted data, you could have a table that mirrors the structure of the one you’re deleting out of with an extra field for “Deletion Date”. Link to this table from your live database, and append into that history table the records you’re about to delete from your live table. ‘Cause I’ll wager dollars to donuts that at some point, somebody will come looking for that deleted, “unnecessary” data!!Don’t worry; we’ve all done it. And how!
After taking a deep breath, and/or several drinks, just plan on not repeating it! Good luck!
-
WSShane Sargent
AskWoody LoungerCharlotte:
Thanks for your efforts! That sounds like a good start on what I’m looking for; mostly I want a document that’ll keep them, and me, from spinning wildly out of control in the middle of the project!
-
WSShane Sargent
AskWoody LoungerKevin:
RPG4 is being used on an AS/400 in our shop, and unfortunately we can’t get away from it any time in the next 18 months or so.
What I’m really looking for is a general document for helping the programmers define a project so reasonable expectations and timelines are established and met. Unfortunately, project definition has always been rather squishy, and I’d like that to change and the perception of our programmers to improve.
So, anybody have a template like that they or their company uses?
-
WSShane Sargent
AskWoody LoungerYup. Post back with some details about what you’re trying to accomplish and some info about the data and the queries.
-
WSShane Sargent
AskWoody LoungerThough there is still a bunch of functions tucked under the covers that I’m still discovering, like the useful but hard to find Partition function
, I don’t think there is a VBA equivalent of the RSet function. I’ve always used the technique Brian described above.
-
WSShane Sargent
AskWoody LoungerIf you get 500 licenses for the cost of 5, be sure to post back the contact info for the reseller!!
-
WSShane Sargent
AskWoody LoungerA little kludgy, but perhaps you simply import the .csv file allowing Access to generate an Autonumber ID for each record. The first record in the .csv file should always have an ID of 1. Next step is to either (1) delete the records with ID = 1, or (2) Append the data into a “repository” type table, excluding records with ID = 1.
Not particularly elegant, but should be brutally effective. Good luck!
-
WSShane Sargent
AskWoody LoungerWow. So short form is: grab a strong cup of coffee, a dictionary and a lawyer friend and check the documentation from the OEM. Thanks for the great info, Dave!
-
WSShane Sargent
AskWoody LoungerExcellent! I’m glad it’s working out for you.
For color constants, you have the following choices: black, blue, cyan, green, magenta, red, white, and yellow. I think, but am not sure, that you can specify other colors by setting the ForeColor = the hex value for that color. As for what colors would look good, it’s best that I don’t issue an opinion…seriously…colors aren’t exactly my strong suit! Ask my girlfriend who says I shouldn’t go shopping by myself!
-
WSShane Sargent
AskWoody LoungerI’ve poked around a bit tonight on MS’s site looking at their licensing FAQ’s – why a fella won’t do when the girlfriend is out of town, eh? Yup, let the good times roll!
From what I’ve read I believe that a license for Office 2000, whether bundled from an OEM or purchased retail, qualifies you for upgrade pricing to the equivalent Office XP product. That doesn’t speak to rebates, special offers, etc., but MS does say: “…or you can call 1-800-426-9400 (select option 4), Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific time) to speak directly to a Microsoft licensing specialist.”.
Just remember to call from a pay phone, and don’t tell ’em I sent you!
-
WSShane Sargent
AskWoody LoungerWhat, you don’t want to shell out the cash for Exchange?!
Would a web based, externally hosted solution do? It’s tough all over for sites that previously offered free or very low charge mail, calendaring, etc. as they generally made their money from ads placed on the pages – no ad budget, no free, web based services. But I’ve played around with Intranets.com, and they’ve seemed decent enough. $20/month for 4 user and $5/mo for each additional. Maybe not what you need, but beats the heck of of an Exchange license!
-
WSShane Sargent
AskWoody LoungerQuestions are good! The presence of null values was obviously something I hadn’t considered in the first cursory pass. This chunklet first tests to see if there is a value in the control; if there isn’t, it steps out of the procedure; if there is, it goes about its merry way and applies the formatting.
You can apply this to more than one control in the detail section by stacking the If-Then-Else code block one on top of the other and changing the control name in each block accordingly. I didn’t do so in this example for readability purposes, but did indicate in a comment where you can.
I’m sure that there is a more effecient and elegant way to go about this, but this should hopefully get the job done for you.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer) Dim dteDue As Date Dim dteToday As Date Dim intDiff As Integer 'If there is no due date specified If Len(Trim(Me.txtDueDate) & "") = 0 Then 'exit the sub Exit Sub 'there is a due date specified, so calculate 'how many days out you are, and format accordingly. Else dteDue = Me.txtDueDate.Value dteToday = Now() intDiff = DateDiff("d", dteToday, dteDue) Select Case intDiff Case Is <= 0 Me.txtDueDate.ForeColor = vbRed Case 1 To 30 Me.txtDueDate.ForeColor = vbYellow Case 31 To 60 Me.txtDueDate.ForeColor = vbBlue Case Else Me.txtDueDate.ForeColor = vbBlack End Select End If 'Len(Trim(Me.txtDueDate) & "") = 0 'this is where you can have another block for another control. End Sub
-
WSShane Sargent
AskWoody LoungerMary:
Are you sure that OEM bundled licenses generally don’t qualify for upgrade pricing? MS’s licensing structure is, uh, murky at best, and I haven’t been able to find anything to that effect on their web site…
-
WSShane Sargent
AskWoody LoungerLet’s assume you have the due date in the detail section of a report, and further assume that the name of the text box that shows the due date is txtDueDate. Right click on the Detail section of the report, choose Properties, and insert the following code for the OnPrint event on the Event tab. This should get you to spec from your original post, but you might reconsider your use of yellow – it’s pretty ugly!
If you have questions about what’s going on in the code chunklet, post back and I’ll see what I can do to answer them.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer) Dim dteDue As Date Dim dteToday As Date Dim intDiff As Integer dteDue = Me.txtDueDate.Value dteToday = Now() intDiff = DateDiff("d", dteToday, dteDue) Select Case intDiff Case Is <= 0 Me.txtDueDate.ForeColor = vbRed Case 1 To 30 Me.txtDueDate.ForeColor = vbYellow Case 31 To 60 Me.txtDueDate.ForeColor = vbBlue Case Else Me.txtDueDate.ForeColor = vbBlack End Select End Sub
-
WSShane Sargent
AskWoody LoungerOr have someone develop some simple ASP pages to query your database and display the results on your company’s intranet. But that’s another thread for another forum!
![]() |
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
-
Help with WD usb driver on Windows 11
by
Tex265
1 hour, 40 minutes ago -
hibernate activation
by
e_belmont
2 hours, 30 minutes ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
6 hours, 17 minutes ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
9 hours, 22 minutes ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
9 hours, 24 minutes ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
12 hours, 34 minutes ago -
Out of band for Windows 10
by
Susan Bradley
14 hours, 7 minutes ago -
Giving UniGetUi a test run.
by
RetiredGeek
21 hours, 4 minutes ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
1 day, 4 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
1 day, 2 hours ago -
Auto Time Zone Adjustment
by
wadeer
1 day, 9 hours ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
1 day, 6 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
11 hours, 26 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
22 hours, 22 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
6 hours, 16 minutes ago -
Apps included with macOS
by
Will Fastie
4 hours, 8 minutes ago -
Xfinity home internet
by
MrJimPhelps
55 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 day, 2 hours ago -
Debian 12.11 released
by
Alex5723
2 days, 6 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
2 days, 10 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
1 day, 13 hours ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
41 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
3 days, 2 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
2 days, 17 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
15 hours, 3 minutes ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
2 days, 21 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
2 days, 5 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
1 day, 7 hours ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
3 days, 15 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
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.