-
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
-
Blocking Search (on task bar) from going to web
by
HenryW
16 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
5 hours, 23 minutes ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
5 hours, 29 minutes ago -
regarding april update and may update
by
heybengbeng
6 hours, 59 minutes ago -
MS Passkey
by
pmruzicka
3 hours, 3 minutes ago -
Can’t make Opera my default browser
by
bmeacham
14 hours, 39 minutes ago -
*Some settings are managed by your organization
by
rlowe44
1 hour, 22 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
13 hours, 33 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
1 day, 9 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 18 hours ago -
AI slop
by
Susan Bradley
8 hours, 21 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 19 hours ago -
Two blank icons
by
CR2
7 hours, 16 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
2 days, 4 hours ago -
End of 10
by
Alex5723
2 days, 7 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
1 day, 5 hours ago -
test post
by
gtd12345
2 days, 13 hours ago -
Privacy and the Real ID
by
Susan Bradley
2 days, 3 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
5 hours, 35 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 17 hours ago -
Upgrading from Win 10
by
WSjcgc50
1 day, 5 hours ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
1 day, 8 hours ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
3 days, 9 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 20 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
3 days, 11 hours ago -
Are manuals extinct?
by
Susan Bradley
11 hours, 28 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 20 hours ago -
Network Issue
by
Casey H
3 days, 7 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
4 days, 8 hours ago -
May 2025 Office non-Security updates
by
PKCano
4 days, 8 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.