I have a Form which displays a listing of partnerships data. When I place a macro button on the form – taking the user to the underlying main record (the macro reads [PSHIPClientCode]=[Forms]![FrmPartnershipListing]![PSHIPClientCode] ) I then cannot save it any more. Then I have to exit the form without saving it. As I now cannot edit it (because it won’t save!) I decided to delete it and use a copy of it. Now I get the attached message. I have looked through the security options, everything is set to Admin. Please point me in the right direction.
![]() |
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 |
-
Form Permissions
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Form Permissions
- This topic has 30 replies, 5 voices, and was last updated 15 years, 4 months ago.
AuthorTopicWSStephenElms
AskWoody LoungerOctober 14, 2009 at 8:06 am #463168Viewing 20 reply threadsAuthorReplies-
WBell
AskWoody_MVPOctober 14, 2009 at 9:30 am #1181235This looks like it is probably related to your previous post. Do you have Access User Security active? If so it appears you may have corruption with the security descriptor for forms. If not, then you may not have all the rights you need to have in the Win7 file permissions for your database.
-
WSStephenElms
AskWoody Lounger -
WBell
AskWoody_MVPOctober 14, 2009 at 10:33 am #1181257If you get a password prompt when you open the first database, then Access User Security is active. But even if you don’t, it is possible for the object permissions in your database to become corrupted so that the Admin user doesn’t have full permissions. Check those with Tools/Security/Permissions.
-
WSStephenElms
AskWoody Lounger -
WSStephenElms
AskWoody Lounger -
WSHansV
AskWoody LoungerOctober 15, 2009 at 5:01 am #1181377Try the following:
– Create a blank new database.
– Select File | Get external data | Import…
– Locate the problem database.
– Import all database objects.
– Select Tools | Startup… and set the startup options the way you want.
– If you had set non-default references in the Visual Basic Editor in the problem database, do the same in the new one.If Access reports that it cannot import one or more objects, you will either have to recreate those from scratch, or import them from an older backup copy.
-
WSStephenElms
AskWoody LoungerWSStephenElms
AskWoody LoungerOctober 15, 2009 at 10:09 am #1181416Hi Hans and all members,
I created a new databse, imported all the objects from the old one. Many error messages on the forms, none on the queries or reports. On opening the db to the Forms section, all of the forms are displayed… Now I can open a form – the one linked to it throw up an arror message that the Jet engine can’t find that form! After canceling the error messages the form opens and is ready to edit, however any changes made cannot be saved. Can anyone explain what is going on, and would I be better to delete the forms (some / all) ?-
WSHansV
AskWoody Lounger
WSStephenElms
AskWoody LoungerOctober 20, 2009 at 7:06 am #1182323OK, I’ve identified that there were 76 corrupted forms in the database – and am re-building them, a pita, ce la vie. I have created a form called companylist, is displays the company code, name and client status. From here I want to be able to click a button and open the CompanyData form, displaying the same company as had focus on the list. Simple really. I wrote the macro then created a command button and attached the macro to it. I get error message and I can’t fathom our why this is happening. Any help will be appreciated. Pictures attached which show the initial error, Macro 01 and Macro 02 shows the macro itself.
-
WBell
AskWoody_MVPOctober 20, 2009 at 7:24 am #1182325One possibility is that the form is in Data Entry mode by default when you open it, so it is trying to create a new record with the same index as an existing record. Debugging macros is a real pain as you don’t have the debug tools that you have in VBA. You might try using the wizard to create a button using VBA and see what you learn doing that.
-
WSHansV
AskWoody Lounger
WSStephenElms
AskWoody LoungerOctober 20, 2009 at 7:52 am #1182329Hans, I did have, first the macro opens the data form, then closes the list form – saving in the process. However, when I removed the Close command, leaving just the Open form, I still get the same message, and the macro gets deleted!
Wendell, I can create the command button with the Open form action and [CodCode] in the list = [CodCode] in the data – that works but leaves the list form still open; I’d prefer it closed.
-
WBell
AskWoody_MVPOctober 20, 2009 at 8:02 am #1182331…
Wendell, I can create the command button with the Open form action and [CodCode] in the list = [CodCode] in the data – that works but leaves the list form still open; I’d prefer it closed.That’s easy enough to accomplish – simply add the VBA statement to the procedure the wizard created:
Me.Close
or as an alternative:
Me.Visible=False
I would still be concerned about the list form thinking the record was dirty however…
WSStephenElms
AskWoody LoungerOctober 20, 2009 at 10:34 am #1182351Unfortunately the command butoon cannot now be created – the error message is that a duplicate key would be created! So I rebuit both the data and the list forms and still the same message. I have checked through all of the forms that I have both Amin and User permissions. This is quite ridiculous really. What shall I try next please?
-
WBell
AskWoody_MVPOctober 20, 2009 at 4:35 pm #1182425Unfortunately the command butoon cannot now be created – the error message is that a duplicate key would be created! So I rebuit both the data and the list forms and still the same message. I have checked through all of the forms that I have both Amin and User permissions. This is quite ridiculous really. What shall I try next please?
Well, it seems that something on the form where you are trying to run the macro or code from is attempting to save a new record before the form is closed (or hidden). But to sort that out and see what is really going on will require either an enormous amount of detail to be posted, or you will need to upload a stripped down version of your database with just the key tables and forms. However I believe you indicated previously that would not be possible… So we would need to know everything about your form and the table structure, as well as any class modules in your database.
WSStephenElms
AskWoody LoungerNovember 4, 2009 at 7:34 am #1184095Wendell, thanks for the response. Interestingly I tried building a list form in another (name & address) db and created the macro button taking me from the list to the underlying data form = it works! So there mus be something wrong with my form???
Please advise what sort of information I can supply, properties of the list form, properties of the data form, screen shot of the query?WSStephenElms
AskWoody LoungerNovember 4, 2009 at 9:32 am #1184115Weirder & yet weirder. When the command button with the OpenForm command is placed on the FrmList to take you to the FrmData it doesn’t work. So I wrote a macro to do exactly the same thing.
Saved the macro
Drew a command button on the FrmList and assigned the macro to it.
Switched to normal view.
Clicked on the command button – went straight to the correct record in the FrmData! Yippee.
Closed FrmData, can see FrmList, no problem as the macro did not have a close command in it.
Save and close FrmList.
Re-open FrmList, command button missing
Re-openmacro – macro missing!Any ideas please, as to what the H is going on?
WBell
AskWoody_MVPNovember 4, 2009 at 11:22 am #1184131Is the form you are using to display the list box bound to the same set of data that you are opening up in the form you are linking too? If that is the case that might explain some of the bizzare behavior you are seeing. Unless there are other reasons to display selected data on the list box form, I would make it completely unbound.
WSStephenElms
AskWoody Lounger-
WBell
AskWoody_MVPNovember 5, 2009 at 3:29 pm #1184390I thought that might be the case, and your form is trying to update the record it is currently attached to. The List form doesn’t have to be linked to the data source for the form – it can be unbound and have the row source for the list as the query that you are using on the form you want to open up. Or are you trying to show some details on the record? In that case you probably want a multi-column list box where the subset of details are displayed. If you use the wizard to build a drop down combo box and see how they implement a similar approach to using a combo box for record navigation, that might shed some light on the situation.
-
WSWebGenii
AskWoody Lounger
WSStephenElms
AskWoody LoungerNovember 12, 2009 at 7:22 am #1185126Wendell, I have copied the db to another directory, so that I can experiment with it. Having deleted all of the macros and forms, I created a single form view of my IndividualData then a continuous list form. The command button to open the data form where [clientcode] = [clientcode] on the list was then created. However it does not work. Ok, you commented that “I would make it completely unbound” Does this mean that the list form does not have a table or qury as it’s source please? In which case how is the list data displayed?
WBell
AskWoody_MVPNovember 12, 2009 at 8:59 pm #1185255Sorry – been tied up most of the day with clients. And what you surmised is true – an unbound form has no data source. However List Boxes (and Combo Boxes) have a Row Source property which can be used to display data. One of the things it can be is a SQL String that is for all intents a query. You must already being doing something like if you are using a list box, but it may need some additional fields if you make your form unbound.
WSStephenElms
AskWoody LoungerNovember 16, 2009 at 8:00 am #1185628Hi Wendell,
Please do, pardon my ignorance regarding opening forms. Up until a couple of months ago, rightly or wrongly, I was able to open a data form from a list form – both of them having the same data source. Opening the data form never caused an error or exception message. So what’s changed then. I think it must be an Office update? Otherwise it’s Office 2003 inter-reacting with Windows 7. Now don’t get me wrong but there is something weird going on. I thank you for the advice about basing the list form on a SQL Query – I can do this, however it would seem that I have to re-write 50% of my forms then.WSStephenElms
AskWoody Lounger-
WSpatt
AskWoody LoungerNovember 17, 2009 at 3:35 pm #1185807Wendell, I’ve created a list form, based on a sql query. When I tried to place the command button on the list form I got the previous error message – see attached. The data sources are not the same query. Any thoughts please?
That is a different error if i am seeing right, it warns re a duplicate key problem doesn’t it?
WBell
AskWoody_MVPWSStephenElms
AskWoody LoungerWBell
AskWoody_MVPViewing 20 reply threads -

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
-
two pages side by side land scape
by
marc
5 hours, 50 minutes ago -
Deleting obsolete OneNote notebooks
by
afillat
7 hours, 56 minutes ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
8 hours, 6 minutes ago -
Security Essentials or Defender?
by
MalcolmP
8 hours, 9 minutes ago -
April 2025 updates out
by
Susan Bradley
2 hours, 29 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
10 hours, 21 minutes ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
10 hours, 24 minutes ago -
Creating an Index in Word 365
by
CWBillow
21 hours, 50 minutes ago -
Coming at Word 365 and Table of Contents
by
CWBillow
21 hours, 55 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
1 day, 2 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
1 day, 6 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
1 day, 8 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
1 day, 6 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
23 hours, 35 minutes ago -
I installed Windows 11 24H2
by
Will Fastie
2 hours, 1 minute ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
1 day, 11 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 30 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
1 day, 19 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
1 day, 4 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
1 day, 4 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
2 days, 12 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
2 days, 21 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
1 day, 23 hours ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
2 days, 5 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
2 days, 16 hours ago -
Nvidia just fixed an AMD Linux bug
by
Alex5723
4 days, 8 hours ago -
50 years and counting
by
Susan Bradley
1 day, 6 hours ago -
Fix Bluetooth Device Failed to Delete in Windows Settings
by
Drcard:))
1 day, 9 hours ago -
Licensing and pricing updates for on-premises server products coming July 2025
by
Alex5723
4 days, 19 hours ago -
Edge : Deprecating window.external.getHostEnvironmentValue()
by
Alex5723
4 days, 19 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.