-
WSjaf90
AskWoody LoungerMany thanks – works excellently (as usual)
John -
WSjaf90
AskWoody LoungerMany thanks – works excellently (as usual)
John -
WSjaf90
AskWoody LoungerThanks Wendell – Hans was, as ever, most helpful. My train of thought changed as I was working through it and I need a fairly painless solution. I think I’ll leave the synthesizing for a date just after hell freezes over!
-
WSjaf90
AskWoody LoungerThanks Wendell – Hans was, as ever, most helpful. My train of thought changed as I was working through it and I need a fairly painless solution. I think I’ll leave the synthesizing for a date just after hell freezes over!
-
WSjaf90
AskWoody LoungerThanks for that – are there any other areas where the uk/us date is a problem? Is this “feature” corrected in Access 2002/2003 – it would seem logical to make it conform to the international date settings on the computer. Or maybe there IS a practical reason for this??
The full line of the promo query is now
Promo: DLookUp(“[PromoPrice]”,”ProductPromo”,”[PromoStart] = #” & Format([ReportDate],”mm/dd/yyyy”) & “# And [ProductID]= ‘” & [ProductID] & “‘”)
Now returns the correct value for any date of promo
I’ve got a little bit further to go with this query, but I think this has broken the back of it.
Many thanks
John
-
WSjaf90
AskWoody LoungerThanks for that – are there any other areas where the uk/us date is a problem? Is this “feature” corrected in Access 2002/2003 – it would seem logical to make it conform to the international date settings on the computer. Or maybe there IS a practical reason for this??
The full line of the promo query is now
Promo: DLookUp(“[PromoPrice]”,”ProductPromo”,”[PromoStart] = #” & Format([ReportDate],”mm/dd/yyyy”) & “# And [ProductID]= ‘” & [ProductID] & “‘”)
Now returns the correct value for any date of promo
I’ve got a little bit further to go with this query, but I think this has broken the back of it.
Many thanks
John
-
WSjaf90
AskWoody LoungerProducts aren’t on promotion all the time, so yes, I do need to synthesize data.
I’ve started to look at the problem another way – using dlookup to find if a promo record exists for the date and using it if it does.I’m using:
Promo: DLookUp(“[PromoPrice]”,”ProductPromo”,”[PromoStart] = #” & [ReportDate] & “# And [ProductID]= ‘” & [ProductID] & “‘”) as one column of my query
and
pricetouse: IIf(IsNull([promo]),[productsellpricecase],[promo]) as the otherI guess i could merge these together, but haven’t yet.
My problem now is that the date between the # marks doesn’t work correctly.
I’m using Uk date formats DD/MM/YYYY, but the dates between #’s seem to only work in US date format.I have a valid promotion for UK format 2/4/4 to 4/4/4 2nd April to 4th April, but it only matches if I use 4/2/4 (4th Feb in my language, but 2nd April in yours)
Should I use some other means of date selection?
John
-
WSjaf90
AskWoody LoungerProducts aren’t on promotion all the time, so yes, I do need to synthesize data.
I’ve started to look at the problem another way – using dlookup to find if a promo record exists for the date and using it if it does.I’m using:
Promo: DLookUp(“[PromoPrice]”,”ProductPromo”,”[PromoStart] = #” & [ReportDate] & “# And [ProductID]= ‘” & [ProductID] & “‘”) as one column of my query
and
pricetouse: IIf(IsNull([promo]),[productsellpricecase],[promo]) as the otherI guess i could merge these together, but haven’t yet.
My problem now is that the date between the # marks doesn’t work correctly.
I’m using Uk date formats DD/MM/YYYY, but the dates between #’s seem to only work in US date format.I have a valid promotion for UK format 2/4/4 to 4/4/4 2nd April to 4th April, but it only matches if I use 4/2/4 (4th Feb in my language, but 2nd April in yours)
Should I use some other means of date selection?
John
-
WSjaf90
AskWoody LoungerI had tried the between [startdate] and [enddate] method, but the problem is more than just a simple selection process
I want to have both those that are on promotion and those that aren’t.
If product A has a normal price of -
WSjaf90
AskWoody LoungerI had tried the between [startdate] and [enddate] method, but the problem is more than just a simple selection process
I want to have both those that are on promotion and those that aren’t.
If product A has a normal price of -
WSjaf90
AskWoody LoungerThanks for the advice regarding the Word testing.
One slight problem I’m still having with this routine is with regard to which folder has the focus (for want of a better word).
The start of the routine creates a client folder in C:Data eg. c:DataClientOne and a subfolder in this for the contract eg. C:DataClientOneContractThree. The files I’m creating are then stored in this structure.
During testing I was creating and deleting files, but found that I wasn’t able to delete a subfolder which I had just written to via the Access/Word routines. I could delete the Word file which I had just created, but not the folder in which it was contained.
I probably won’t need to delete anything in this manner, but was interested to know what is holding the folder to make it undeleteable
The lock is released when I close the Access database
John -
WSjaf90
AskWoody LoungerThanks for the advice regarding the Word testing.
One slight problem I’m still having with this routine is with regard to which folder has the focus (for want of a better word).
The start of the routine creates a client folder in C:Data eg. c:DataClientOne and a subfolder in this for the contract eg. C:DataClientOneContractThree. The files I’m creating are then stored in this structure.
During testing I was creating and deleting files, but found that I wasn’t able to delete a subfolder which I had just written to via the Access/Word routines. I could delete the Word file which I had just created, but not the folder in which it was contained.
I probably won’t need to delete anything in this manner, but was interested to know what is holding the folder to make it undeleteable
The lock is released when I close the Access database
John -
WSjaf90
AskWoody LoungerThanks very much for all your help with that Hans – works great. I’ll refine it further now that I have a few of the commands and have the gist of what is required to carry out each task.
Many thanks
John -
WSjaf90
AskWoody LoungerThanks very much for all your help with that Hans – works great. I’ll refine it further now that I have a few of the commands and have the gist of what is required to carry out each task.
Many thanks
John -
WSjaf90
AskWoody LoungerIs there a method of forcing Word to maximise at the time of opening the document? It seems to be a bit hit and miss as to how it starts.
Also, how would I open a specific file, rather than creating a new one – I’m going to change the routine so that if the file exists it opens it, otherwise it creates a new file with the specified filename.
![]() |
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
-
Phishers extract Millions from HMRC accounts..
by
Microfix
2 hours, 1 minute ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
3 hours, 53 minutes ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
7 hours, 2 minutes ago -
Mystical Desktop
by
CWBillow
7 hours, 15 minutes ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
2 hours, 2 minutes ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
14 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
22 hours, 28 minutes ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
1 day, 1 hour ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
23 hours, 23 minutes ago -
What is wrong with simple approach?
by
WSSpoke36
15 hours, 55 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
1 day, 10 hours ago -
Location, location, location
by
Susan Bradley
1 hour, 14 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
1 day, 12 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
1 day, 2 hours ago -
June 2025 Office non-Security Updates
by
PKCano
1 day, 22 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
1 hour, 34 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
1 day, 22 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
2 days, 9 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
1 day, 12 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
2 days, 18 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
2 days, 18 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
2 days, 7 hours ago -
Firefox 139
by
Charlie
2 days ago -
Who knows what?
by
Will Fastie
1 day, 2 hours ago -
My top ten underappreciated features in Office
by
Peter Deegan
2 days, 18 hours ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
12 hours, 20 minutes ago -
Misbehaving devices
by
Susan Bradley
1 day, 14 hours ago -
.NET 8.0 Desktop Runtime (v8.0.16) – Windows x86 Installer
by
WSmeyerbos
4 days ago -
Neowin poll : What do you plan to do on Windows 10 EOS
by
Alex5723
23 hours, 33 minutes ago -
May 31, 2025—KB5062170 (OS Builds 22621.5415 and 22631.5415 Out-of-band
by
Alex5723
3 days, 23 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.