-
WSMarkU
AskWoody LoungerI’ve got this problem for a PDF in a certain folder on our domain (Windows Server 2003 with NTFS). We’ve had files in the same folder loose all security permissions, but I was able to sort these out by taking ownership.
This time, since there’s no security tab, I can’t take ownership. I’ve tried forcing down ownership from the folder above, but it gives an error for the file in question. Simple file sharing is not turned on (it’s not even available).
Any more ideas from anyone?
Thanks,
Mark
-
WSMarkU
AskWoody LoungerSeptember 11, 2006 at 10:31 am in reply to: Code to pull existing info into new record (Access 2003) #1028085In case it’s useful to anyone, I’ve got the following code for copying all fields (except for AutoNumber):
Dim rst As Recordset Dim fld As Field Set rst = Me.RecordsetClone rst.AddNew For Each fld In rst.Fields If (fld.Attributes And dbAutoIncrField) = False Then Debug.Print fld.Name & "(" & fld.Type & ") = " & Me.Controls(fld.Name) rst.Fields(fld.Name) = Me.Controls(fld.Name) End If Next fld rst.Update
It seems to work okay, though I haven’t tested it fully yet.
-
WSMarkU
AskWoody LoungerThat did the trick.
Thank you very much, Hans!
-
WSMarkU
AskWoody LoungerI’ve used a similar code to record the “last updated” date (except I’ve used Now() to give the time as well). This works well under most circumstances.
However, I also have a ListBox (lstSelect) on the form for selecting records. When I use this ListBox, I get the error, “Update or CancelUpdate without AddNew or Edit.” When an item is selected in the ListBox, the ListBox’s AfterUpdate event runs the following code to select the record:
Me.RecordsetClone.FindFirst "[RecordID] = " & Me![lstSelect] Me.Bookmark = Me.RecordsetClone.Bookmark
The form’s BeforeUpdate event is then activated, but when it tries to change the “last updated” field, it’s already moved to a new record, hence the error.
Does anyone have any idea how to avoid this problem?
PS – I’m using Office 97 (just in case that makes any difference – I’m not after sympathy!)
-
WSMarkU
AskWoody LoungerThanks a lot, Hans!
For anyone else with a similar problem, the only other thing I had to do was to call the ListBox’s AfterUpdate event from the form’s Activate event. This then found the record specified by the ListBox.
-
WSMarkU
AskWoody LoungerThank you, Hans, for the code. It works perfectly.
I was planning that the user could simply view the crosstab query directly, but I’m intrigued by your suggestion that I use it as a source for a report. Is it possible to create a report from a source that doesn’t have fixed field names?
By the way, although I’m using Access 97, I probably will have Access 2003 within the next year, and I think that will give me many more options.
Thanks once more for your help!
-
WSMarkU
AskWoody LoungerWow, what a response! In the time I wrote my thoughts on the first two replies, two more came in!
I think the VBA route is probably the one to go for in this case, because it doesn’t require months/years to be pre-populated in a query or table.
Thanks for your help, everyone!
-
WSMarkU
AskWoody LoungerMarch 10, 2005 at 10:11 am in reply to: How Many Items In Sub Form? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8) #933794[indent]
You can also refer to these text boxes in code. Alternatively, you can use SubformName.Form.Recordset.RecordCount.
[/indent]
I tried this and it didn’t work. I had to use RecordsetClone instead (i.e. “SubformName.Form.RecordsetClone.RecordCount”). For example:If Me!subfrmTest.Form.RecordsetClone.RecordCount < 1 Then 'Do something End If
-
WSMarkU
AskWoody LoungerAugust 25, 2004 at 6:36 am in reply to: Deleting Mail Permanently With 1 Stroke (2000 (probably others)) #868509Thanks for the tip! This will save me a lot of time.
Does anyone know if it’s possible to access this “permenent delete” command via a menu button?
How about through VBA? I’m thinking about a macro to clear out my spam folder.
-
WSMarkU
AskWoody LoungerAugust 25, 2004 at 6:36 am in reply to: Deleting Mail Permanently With 1 Stroke (2000 (probably others)) #868510Thanks for the tip! This will save me a lot of time.
Does anyone know if it’s possible to access this “permenent delete” command via a menu button?
How about through VBA? I’m thinking about a macro to clear out my spam folder.
-
WSMarkU
AskWoody LoungerI’m trying the DAO route as suggested. It’s going well so far. I’ll let you know what happens. Thanks for your help!
-
WSMarkU
AskWoody LoungerI’m trying the DAO route as suggested. It’s going well so far. I’ll let you know what happens. Thanks for your help!
-
WSMarkU
AskWoody LoungerFebruary 25, 2004 at 11:55 am in reply to: Multiple labels from each record (Access 97, Win 2000) #790028Perfect! That works really well. I’ll have to study the code to find out how. Does the “Me.NextRecord = False” force the report to call the event again?
I knew it had to be possible, but I’m pretty sure I would never have stumbled upon that solution by myself. Certainly the hours I’d spent looking through Help etc. hadn’t got me anywhere.
Thank you so much for your help!
-
WSMarkU
AskWoody LoungerFebruary 25, 2004 at 11:55 am in reply to: Multiple labels from each record (Access 97, Win 2000) #790029Perfect! That works really well. I’ll have to study the code to find out how. Does the “Me.NextRecord = False” force the report to call the event again?
I knew it had to be possible, but I’m pretty sure I would never have stumbled upon that solution by myself. Certainly the hours I’d spent looking through Help etc. hadn’t got me anywhere.
Thank you so much for your help!
-
WSMarkU
AskWoody LoungerThanks to everyone for their help on this.
I’ve come to the conclusion that the ends don’t justify the means on this, so I’m just going to create an add-in and let the users add a link to the macro as they wish. However, I will keep the more complex solutions suggested in mind for the future!
Thanks again!
![]() |
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
-
How to get Microsoft Defender to honor Group Policy Setting (Awaiting moderation)
by
Ralph
1 hour, 36 minutes ago -
Apple : Paragon’s iOS Mercenary Spyware Finds Journalists Target
by
Alex5723
2 hours, 16 minutes ago -
Music : The Rose Room – It’s Been A Long, Long Time album
by
Alex5723
3 hours, 22 minutes ago -
Disengage Bitlocker
by
CWBillow
4 hours, 45 minutes ago -
Mac Mini M2 Service Program for No Power Issue
by
Alex5723
5 hours, 21 minutes ago -
New Win 11 Pro Geekom Setup questions
by
Deo
7 hours, 5 minutes ago -
Windows 11 Insider Preview build 26200.5651 released to DEV
by
joep517
12 hours, 37 minutes ago -
Windows 11 Insider Preview build 26120.4441 (24H2) released to BETA
by
joep517
12 hours, 38 minutes ago -
iOS 26,, MacOS 26 : Create your own AI chatbot
by
Alex5723
16 hours, 33 minutes ago -
New PC transfer program recommendations?
by
DaveBoston
6 hours, 54 minutes ago -
Windows 11 Insider Preview Build 22631.5545 (23H2) released to Release Preview
by
joep517
20 hours, 38 minutes ago -
Windows 10 Build 19045.6029 (22H2) to Release Preview Channel
by
joep517
20 hours, 39 minutes ago -
Best tools for upgrading a Windows 10 to an 11
by
Susan Bradley
8 hours, 58 minutes ago -
The end of Windows 10 is approaching, consider Linux and LibreOffice
by
Alex5723
6 hours, 20 minutes ago -
Extended Windows Built-in Disk Cleanup Utility
by
bbearren
18 hours, 48 minutes ago -
Win 11 24H2 June 2025 Update breaks WIFI
by
dportenlanger
1 day, 15 hours ago -
Update from WinPro 10 v. 1511 on T460p?
by
CatoRenasci
13 hours, 32 minutes ago -
System Restore and Updates Paused
by
veteran
1 day, 18 hours ago -
Windows 10/11 clock app
by
Kathy Stevens
1 day, 5 hours ago -
Turn off right-click draw
by
Charles Billow
1 day, 21 hours ago -
Introducing ChromeOS M137 to The Stable Channel
by
Alex5723
2 days ago -
Brian Wilson (The Beach Boys) R.I.P
by
Alex5723
18 hours, 47 minutes ago -
Master patch listing for June 10, 2025
by
Susan Bradley
2 days, 2 hours ago -
Suggestions for New All in One Printer and a Photo Printer Windows 10
by
Win7and10
1 day, 5 hours ago -
Purchasing New Printer. Uninstall old Printer Software First?
by
Win7and10
2 days, 8 hours ago -
KB5060842 Issue (Minor)
by
AC641
20 hours, 37 minutes ago -
EchoLeak : Zero Click M365 Copilot leak sensitive information
by
Alex5723
2 days, 15 hours ago -
24H2 may not be offered June updates
by
Susan Bradley
1 day, 8 hours ago -
Acronis : Tracking Chaos RAT’s evolution (Windows, Linux)
by
Alex5723
3 days, 4 hours ago -
June 2025 updates are out
by
Susan Bradley
9 hours, 37 minutes 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.