-
WSPeterN
AskWoody LoungerI’d aim towards drastically simplifying the main form, perhaps by replacing it with a series of linked forms. I’d create those from scratch, instead of copying bits and pieces from the problem form, to avoid copying the corruption, wherever it may lurk.
Thanks Hans. There is a lot of code in the forms. Could I copy it to a text file or a VBA storage program and then copy it back out?
-
WSPeterN
AskWoody LoungerMany things can effect bigger forms.
Compile often if vba code is one I was advised.
Another is to turn off name auto correct which has always been flakey
see http://allenbrowne.com/bug-03.html
If you have a lot of code try a decompile every now and again
Thanks, Andrew. I know Allen’s site and have run decompiles more than once. I always have name auto correct off.
-
WSPeterN
AskWoody LoungerI think there is a upper limit on how many times you can edit and add controls to a form which I’ve seen documented somewhere but don’t remember where. One trick you might try is saving the database to text and then loading it from text. I have seen that fix some corruption problems with forms.
Can you explain saving the database to text, Wendell?
This form has definitely been edited a lot. My guess is that it has reached the end of its useful life.
-
WSPeterN
AskWoody LoungerJust a thought, this can also be caused by another total in a footer being wrong.
I have noticed in Access that if there are a couple of totals and one of them yields an error, that will often all yield an error.Hi Andrew:
Thanks for the suggestion. This was actually what the problem was. My second totally column was WkAmt * 52 and I was just summing this calculated amount. Access didn’t like that. Once I changed the formula to calculate in the total box =Sum([WkAmt]*52) then the errors went away.
-
WSPeterN
AskWoody LoungerJust a thought, this can also be caused by another total in a footer being wrong.
I have noticed in Access that if there are a couple of totals and one of them yields an error, that will often all yield an error.I’ll check out this possibility when I am back at the office. Thanks for the suggestion.
-
WSPeterN
AskWoody LoungerIs the name of the control on the subform bound to the WkAmt field also WkAmt?
If not, is there another control named WkAmt?One other thing: have you checked whether the values of WkAmt in the source table are still OK?
Thanks for this. There is a possibility that this might be the problem. I was doing some copying and pasting and other similar stuff and I might have ended up with two controls named WkAmt. I can say with certainty that the values in WkAmt are OK in the source table since I was just creating this form today and there are only 7 test values which I added while I was working. Is there any possibility that other calculated fields on the form detail level could be messing up the subtotal? There is another control that takes the value of WkAmt and multiplies it times 52 for a Yearly amount (wk being Week).
Regardless this gives me some food for thought and I will pursue it when I am back in the office on Tuesday.
-
WSPeterN
AskWoody LoungerYour solution is probably correct. I used the following and I got the 0s:
Vision Revenue Cross Sold: IIf([Vision Status]=”Gain” And [Product Category]=”Two or More products” And ([rcac ucci in]=”Y” Or [JanHMIG]=”Y”),[Vision Projected Revenue],0)
At least I hope it is correct. Is the way I did AND with the two OR fields correct? Vision Status = gain and Product category = Two or more products and then either one of the rcac ucci in = Y or JanHMIG = Y then I want vision projected Revenue else a 0.
On the face of it, it looks correct to me. I always consider that if the formula is giving me the answer I want/need then it is correct. In the previous one, you were definitely missing the third part of the outer statement. This one has three parts and your Ors are in brackets, so it should work.
-
WSPeterN
AskWoody LoungerWhere in this query calculation would I put NZ? I keep getting incorrect number of arguments. I should get 0’s but I am getting blanks so I thought I needed NZ.
Dental Members Cross Sold: IIf([Dental Status]=”Gain”,IIf([Product Category]=”Two or More products”,[JanDentalMem],0))
You have nested IIf statements so both the inner bit and the outer bit need three parts. You are missing the third part of the outer bit. The last part should like this: [JanDentalMem],0),0)
Which will give you a 0 if Dental Status is not “Gain”. You will also get a 0 if Dental Status is “Gain” but Product Category is not “Two or More Products”.
Hopefully I did this right! Hans will correct me if I didn’t….
-
WSPeterN
AskWoody LoungerI finally had a chance to look at this tonight and it is all working properly once I got the dots in place. Many thanks.
-
WSPeterN
AskWoody LoungerThe form opens with deletions allowed for me. I don’t know why.
I found the problem, too stupidly obvious to go looking there in the first place. The Immigration Status subform had Allow Deletions set to Yes in the properties window. Once I changed that, the form was locked or unlocked according to permissions in the VBA.
Thanks for looking at it anyways.
-
WSPeterN
AskWoody LoungerHello,
I’ve created an access database (2003), & I went into tools-> startup, and like a goof, I toggled off the “allow full menus” option & the submenus option below it….. I also chose to have one of my forms open up upon startup.Now, I can’t access any of the menus. When I open the database, the form displays & only the menu related to the form displays. I don’t have the normal file, windows, tools, help menu’s anymore. Does any one know how to get them back?!
This is what I get for playing where I shouldn’t be!!!
Thank you!!!!
Hold down the shift key on startup and you will have full menus.
-
WSPeterN
AskWoody LoungerI have an access 2003 app running on a machine not connected to the Internet, so it doesn’t have ll the latest Access updates. However, I don’t need the updates. Upon startup I get several dialog boxes about possible unsafe code. There’s nothing unsafe and I need to get rid of the dialog boxes. Any suggestions?
Go to Tools menu then Macro/Security. Set it to low and the dialogues will go away. I would strongly encourage you to get the updates. They fix a lot of bugs.
-
WSPeterN
AskWoody LoungerPrivate Sub Check_In_Click()
If Me.Dirty Then
If IsNull(Me.CompanyOrDepartment) Then
Me.CompanyOrDepartment.SetFocus
MsgBox “Company Name is required. Enter ‘None’ if no company name is available”, vbExclamation
Cancel = True
Exit Sub
End If
RunCommand acCmdSaveRecord
End IfTry Docmd.Runcommand acCmdSaveRecord
-
WSPeterN
AskWoody LoungerHello.
When linking to a SharePoint Server, is it possible to set a refresh interval?
Thank you, Andy.Since no one else has jumped in, I have had one very brief experience with SharePoint a few months ago. My impression was that if the database is simple, it will work fine. Certainly exporting to SharePoint lists(? I forget the term) was pretty simple.
In terms of refreshing, if you are using Access forms to interface with the data, you should be able to just use the timer event to run a sub that refreshes the data.
If you are doing intensive updating of data, I found my database which worked very quickly with an Access backend ran excruciatingly slowly with the data in Sharepoint lists. 10, 15, 20 seconds to update data in a form. I recommended to them that they really needed to move to a SQL Server type of environment where the heavy lifting is done on the server side rather than the front end like Access does.
-
WSPeterN
AskWoody LoungerSeptember 5, 2009 at 1:41 pm in reply to: Is it possible to create a table from another table? #1176424If I have a table that contains records identifying a field name, field type, default value, format, caption etc., can I use the records within the table to create a table from scratch? Would I use DAO or ADO?
Is it also possible to create export specifications from a table? For example if I have a table with all the field names, size, starting position, type, can I create a text Export spec? I have several tables that I need to export to fixed width text file, and I also have the specifications for the layout in a separate table. I am looking for a way to create the spec from that table, instead of manually creating the spec.
Thanks for your consideration.
Ken
Play around with Export from the File menu. This only allows you to do one at a time but gives you all standard formats, excel, text, csv, other database formats. You can use the records within a table to make another one by using a Make Table query. If you want to do more than one table at a time, you would have to use code. A lot depends on what it is you need to do with these tables in terms of determining the most efficient way to do it.
![]() |
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
-
Can’t make Opera my default browser
by
bmeacham
1 hour, 52 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
1 hour, 59 minutes ago -
*Some settings are managed by your organization
by
rlowe44
11 hours, 58 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
14 hours, 12 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
14 hours, 36 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
23 hours, 37 minutes ago -
AI slop
by
Susan Bradley
22 hours, 48 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day ago -
Two blank icons
by
CR2
10 hours, 27 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 9 hours ago -
End of 10
by
Alex5723
1 day, 12 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
10 hours, 23 minutes ago -
test post
by
gtd12345
1 day, 18 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 8 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 22 hours ago -
Upgrading from Win 10
by
WSjcgc50
10 hours, 32 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
14 hours, 6 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 14 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 2 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 16 hours ago -
Are manuals extinct?
by
Susan Bradley
2 hours, 4 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 1 hour ago -
Network Issue
by
Casey H
2 days, 12 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 13 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 14 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 15 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 16 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 18 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 18 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.