-
Tom Wickerath
AskWoody PlusTo add some to Patt’s reply, see the following Microsoft KB article. Ignore the “ACC2000” in the title, as this applies to all versions of Access:
ACC2000: Error When Running Crosstab Query with a Parameter
http://support.microsoft.com/?id=209778 -
Tom Wickerath
AskWoody PlusMarch 10, 2011 at 12:28 am in reply to: Can I create a form in Access that can be edited and saved? #1270909I apologize for the wording of the original subject line. I can see how it would be confusing. Thanks for your answers. It’s good (and bad) to know it can be done. I guess I’m off to delve into OLE Automation and VBA now.
You can export to Excel without using any automation code, if your needs are fairly simple. In fact, you can even export data using a macro (no VBA code required). However, if your needs include preparing a fully formatted Excel workbook, then yes, you will need to use automation code.
-
Tom Wickerath
AskWoody PlusMarch 9, 2011 at 12:41 am in reply to: Can I create a form in Access that can be edited and saved? #1270824I don’t think that the idea is for the new information to be added to the database. I think the idea is to create an Excel spreadsheet, Word document or PDF file that allows someone else in another location to fill it in electronically and print out.
Were you aware that you posted your question in a databases group? Certainly you can create an Excel spreadsheet or Word document, fill in part of the information, and have someone else fill out the rest and print. With the right software, you can even use the .pdf file format.
-
Tom Wickerath
AskWoody PlusThanks. I’ve been hunting around for that setting, but had not found it on my own.
Tom
-
Tom Wickerath
AskWoody PlusThe samples I posted use an unbound main form with a bound subform. Then, when you double-click on a record in the subform, you open a bound form to just that one record selected. So, I’m still enjoying the ease of development using bound forms, but, if the bound form would normally be tied to a large recordset, then I use the Unbound QBF form to help find the appropriate record to open. Does that make sense?
Question for you as a moderator:
I’m new to this group. Is there a way to set up email notifications? If so, can it be done without revealing one’s real email address?Thanks,
Tom Wickerath
Microsoft Access MVP
2006 – 2011 -
Tom Wickerath
AskWoody PlusMarch 8, 2011 at 2:18 am in reply to: Can I create a form in Access that can be edited and saved? #1270733If both users are on the same Local Area Network, then you just need to create a Multi-user Access application, where each user fills in their portions of the required data.
Implementing a Successful Multiuser Access/JET Application
http://www.accessmvp.com/TWickerath/articles/multiuser.htmIf these users are at separate locations (a Wide Area Network is involved), then you probably should not consider using a JET database.
Tom Wickerath
Microsoft Access MVP
2006 – 2011 -
Tom Wickerath
AskWoody PlusHi MacroAlan,
I have a sample database that is based on code provided by Access MVP Dirk Goldgar, which shows how to easily create a temporary work database using a “template” table, or any SELECT query (including crosstab queries). There’s only one little restriction that involves the VBA editor option needs to be set to Break on Unhandled Errors, as opposed to Break on all Errors. If you distribute your application in the compiled .mde (.accde) form, then you need not worry about how this VBA option is set on a user’s machine. The sample is located here:
http://www.accessmvp.com/TWickerath/downloads/tmpwrkdb.zip
Tom Wickerath
MS Access MVP
2006 – 2011 -
Tom Wickerath
AskWoody PlusHi Marty,
> Tom, regarding late binding of the references, are you refering to an approach where the db is compiled with out them…
Yes. However, if your code has not been converted to use late binding, and there is a dependency on a checked reference, then any attempt to compile the code will fail.
Note: If you can remove a reference, and your code compiles okay, then you did not need that reference, period. It is ALWAYS best to starve the references listing. In other words, do not allow a reference to remain checked unless it is absolutely necessary for your code to compile.
> …and, upon the FE’s starup, the references are set?
No. Late bound code does not require that any references be set. Here is a sample file that you are welcome to download from my web site, which uses late bound (no reference required) code to automate Excel:
Automation with Late Binding (Calling Excel’s NormInv function)
http://www.accessmvp.com/TWickerath/downloads/Statistics.zipTom Wickerath
Microsoft Access MVP
2006 – 2011 -
Tom Wickerath
AskWoody PlusIs there some good reason for using an unbound form with unbound controls? It would be much simpler if the form and controls were bound.
You can then just use the combo box wizard to add an unbound Combo Box, and choose to Find a Record, and the wizard will write the simple bit of code needed.
Hi John,
Using a bound form is really only appropriate for fairly small databases, or if the database is located entirely on a user’s local hard drive (no network involved), because you end up pulling more records over the network wire than are usually necessary. The Golden Rule for good performance of a multi-user Access application [or any application, for that matter] is to retrieve only the data needed. The same logic applies to a web page or other application that retrieves data from SQL Server, Oracle or whatever database you are using.
For more information, check out my Multi-user Applications paper:
Implementing a Successful Multiuser Access/JET Application
http://www.accessmvp.com/TWickerath/articles/multiuser.htmTom Wickerath
Microsoft Access MVP -
Tom Wickerath
AskWoody PlusHi Tom,
You can simplify the “Sort” field, where you have used the Switch function to print the name of the month by using the built-in MonthName function. For example, in query design view, enter the following expression in the Field row:
Sort: MonthName(Month([WeddingAnniversary]))
Notes:
I would think that you’d want a numeric field as a sort result, ie: Sort: Month([WeddingAnniversary])
I would avoid aliasing any columns with reserved words. Both Month and Day are considered reserved words in Access.If, however, the user selects March from sometime in February, the results in anniversary years are 1 less than they should be.
It appears as if you want to round the result up to the nearest whole number, in years. So, should 9.5 years round up to 10 but 9.49 years round down to 9 years? If so, I think the following expression should do the trick:
WedAnnvYears: Round((DateDiff(“d”,[WeddingAnniversary],Now())+Int(Format(Now(),”mmdd”)<Format([WeddingAnniversary],"mmdd")))/364.25+0.000001,0)
In the above expression, I'm calculating an age in days, and then converting to years. Finally, I add a very small number, 0.000001 to the result and apply the Round function, rounding to zero decimal places.
Tom Wickerath
MS Access MVP
2006 – 2011 -
Tom Wickerath
AskWoody PlusHi Marty,
Wouldn’t it be better to use late binding (no checked reference required) instead of early binding (requires checked references)? I typically develope code using early binding, so that I get the benefit of Intellisense. After the code is debugged, I convert to using late binding. Although I’ve never done any work in 64-bit environments, I suspect that late binding would be useful here as well. There are methods available to use conditional branching in VBA code, depending on 32-bit vs. 64-bit. Try searching the Access Blog at Microsoft–I’m pretty sure they have posted on this topic.
Tom Wickerath
Microsoft Access MVP
2006 – 2011 -
Tom Wickerath
AskWoody PlusHello –
First, a quick word about the declaration of the recordset variable….I recommend that you always use an explict declaration for the type of recordset (DAO or ADO) that you want to use. Here is an article I wrote that discusses this in more detail:
ADO and DAO Library References in Access Databases
http://www.accessmvp.com/TWickerath/articles/adodao.htmI have some Query by Form examples available for download, which you are welcome to have a look at. These samples increase in complexity, with the Custom Dialog Box sample being the easiest, followed by the Elements sample (demonstrates how to iterate a multiselect listbox). The Chap08QBF sample came from chapter 8 of the book “Access 2000 Power Programming”, written by F. Scott Barker, with a few enhancements that I added:
http://www.accessmvp.com/TWickerath/downloads/customdialogbox.zip
http://www.accessmvp.com/TWickerath/downloads/elements.zip
http://www.accessmvp.com/TWickerath/downloads/Chap08QBF.ziphttp://www.seattleaccess.org/downloads.htm
See the download “Query By Form”
Tom Wickerath, February 12, 2008To help you get started with VBA programming, you might want to have a look first at this download on the Seattle Access site:
DAO – Back To Basics Compilation/Demo by Tom Wickerath, Jan/Feb 2007
Tom Wickerath
Microsoft Access MVP -
Tom Wickerath
AskWoody Plusafter inserting and deleting the field in front of the short desc field (which happens to be the last field in the sheet), i was able to link properly to the field. i had our staff run the exported data which populates the table (they have to do this daily) today and we’re back to square one. the table doesn’t recognize the field again. i dont’ want to have to insert another manual step unless i absoultely have to.
i just don’t understand why it won’t recognize the last column of data automatically.
Hi –
You haven’t mentioned which product and version that you are using…If you are using Microsoft Access, the problem might be related to your choice of field name. Note that these three words are considered Reserved words:Short
Description
DescSo, a combination of reserved words that includes a space character, such as “short description” or “short desc” might be enough to confuse the situation, whereas I would expect that “ShortDescription” or “ShortDesc” should be okay. For a complete list of reserved words in Microsoft Access, see Access MVP Allen Browne’s listing:
Problem Names and Reserved Words in Access
http://www.allenbrowne.com/AppIssueBadWord.htmlTom Wickerath
Microsoft Access MVP -
Tom Wickerath
AskWoody PlusAccess MVP Armen Stein has a very good relinker available for free. One of the features allows one to easily relink to a BE file that is in the same folder as the FE.
http://www.jstreettech.com/cartgenie/pg_developerDownloads.aspThe download is named “J Street Access Relinker”.
-
Tom Wickerath
AskWoody Plus> Lookup fields are a ruse to show you something other than what is really there.
I agree (and so do many of my MVP friends). Have a look at the 2nd Commandment of Access, here:
The Ten Commandments of Access
http://www.mvps.org/access/tencommandments.htmTom Wickerath
Microsoft Access MVP
https://mvp.support.microsoft.com/profile/Tom
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Office gets current release
by
Susan Bradley
23 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
11 hours, 25 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
8 hours, 9 minutes ago -
Stop the OneDrive defaults
by
CWBillow
12 hours, 14 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
22 hours, 9 minutes ago -
X Suspends Encrypted DMs
by
Alex5723
1 day ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 1 hour ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 1 hour ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
14 hours, 3 minutes ago -
Enabling Secureboot
by
ITguy
21 hours, 3 minutes ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 9 hours ago -
No more rounded corners??
by
CWBillow
1 day, 5 hours ago -
Android 15 and IPV6
by
Win7and10
19 hours, 21 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
1 day, 22 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 19 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 8 hours ago -
May preview updates
by
Susan Bradley
1 day, 19 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 11 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days ago -
KB5058379 / KB 5061768 Failures
by
crown
1 day, 21 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
23 hours, 36 minutes ago -
At last – installation of 24H2
by
Botswana12
2 days, 23 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
55 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 11 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 10 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 1 hour ago -
Another test post
by
gtd12345
4 days, 1 hour ago -
Connect to someone else computer
by
wadeer
2 hours, 45 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.