-
WSBigDaddyV
AskWoody LoungerJanuary 19, 2012 at 1:25 pm in reply to: Access 2007 – Deafult Folder for Importing External Data #1315209Personally, I can’t think of one. It depends on why you need to change the default, but you may have to go with a custom Import/Export form where you can set the directory you want. It will probably require some VBA or macro coding.
Regards,
Kirk -
WSBigDaddyV
AskWoody LoungerJust an idea: Instead of opening a new query instance, why not just work with the form’s recordset via the RecordsetClone?
Regards,
Kirk -
WSBigDaddyV
AskWoody LoungerJanuary 18, 2012 at 2:43 pm in reply to: Extract Access Query Report Name From Multiple Access Databases #1314928I use a product called Speed Ferret. Couldn’t reverse engineer (efficiently) without it. However, the publisher stopped updating it at Access 2003, and I haven’t tried it with later Access versions. All the same, if you have Access 2003 or older mdbs, this will save you a LOT of time.
http://www.moshannon.com/speedferret.html
Regards,
Kirk -
WSBigDaddyV
AskWoody LoungerJoop, I use the following statement to update combo boxes and lists:
.Rowsource = .Rowsource
With the various versions of Access I work with, this is the only reliable method I have found to update a combo box or list. This requires a little VBA programming. You need to run the line whenever the event occurs that changes its underlying source data. For example, if I have a list with 2 combos and number 2 needs to get updated after something is selected in 1, I will put the rowsource=rowsource statement into the onClick event of Combo 1, i.e., combo2.rowsource=combo2.rowsource.
Hope this helps,
Kirk -
WSBigDaddyV
AskWoody LoungerHi! It sounds like the source data is actually in a character format rather than number. You could do a conversion from character to number and store the result in the target field. That way, the data in the target will sort correctly. The conversion only happens at import time. The fact that the data in the source has a leading zero probably means it is formatted as text, probably in a fixed width field.
Regards,
Kirk -
WSBigDaddyV
AskWoody LoungerWhen an activity/listing is added to the database (in table 3,) it is given a creation date within the details table(4). The activity/listing has a life span of 240 days. I would like the database to generate a report to say which agent needs communication for which activity/listing based on Day1, Day15, Day32, Day63, Day95, Day129, Day161, Dayetc. The report to generate each day needs to break into which agent, related activity/listing and form(s) of communication. The report needs to be exported to an Excel book, one sheet for each form of communication…
If this can be done with the database, its creation is worth pursuing.
Kirk, Thanks for your time!!
Hi, Jack. Once you have things normalized, it would be relatively simple to keep track of the age of a listing by using a query with a calculated field (let’s call it Age) that is the CurrentDate – ListingDate. You can use the query as a source for reports, using whatever filter you like on the Age. You can even use it for whatever forms you might build, and use a filter just to see “current” listings, i.e., those that are no more than 240 days old. That way, you are using only one table for all listings, regardless of whether they are active or not. This is conceptually simpler. Of course, you might run into speed problems when you have very many old listings and that is where the second table of only old listings might come into play, but, just my opinion, it is better to use one table.
Another tip: If you will have multiple users accessing the data, give thought to using SQL server on the back end and MSAccess for the user interface. In my experience, when you have more than about 5 users all hitting an Access database, it will trash itself about once every few months. Then again, maybe I am just unlucky. All of the stuff I have done for the past 10 years has been with Access for the UI and SQL for the data backend, and the phone calls for “corrupted data” have dropped to zero. I know it is another layer of complexity, but, compared to normalization, it is pretty simple.
Enjoy!
Kirk -
WSBigDaddyV
AskWoody LoungerHi, I took a quick look at the mdb you posted and noticed that the data needs to be normalized. You can get some good information by searching for Data Normalization on the Inet. As an example, I am attaching some modifications I did to your database structure. I dealt with only the agents and all offices tables. I noticed that office phone numbers were in both tables, i.e., the data was being repeated in multiple tables. So, I removed the office-related fields from the agents table, leaving only the officeID. I then set up a One to many relationship between the office table and the agents table, linking them by the officeID. With this setup, an office can have one or many agents assigned to it. If your agents can be associated with multiple offices, then the setup would be different. I think you will need to do quite a bit of normalization to make this data interact correctly. Sorry, there isn’t a quicker fix. To get you started, here are some tips:
1. Think of each table as a collection of discrete entities (entity = record) with a set of attributes (fields) that apply only to that individual entity. For example, if the entity is an agent, and there are multiple agents in an office, then the address of the office does not really apply uniquely to any one agent. Instead, use the OfficeID to link an agent to an office record in another table.
2. Eliminate redundant data. In the original tables, the office addresses were repeated in the agents table and in the office table. They really only need to be in one. Makes it much simpler and more efficient to update the information.
Hope this helps a little. Normalizing data is not something you learn overnight, at least not most of us. A good way to get started, after doing some online research, is to take a look at the sample Northwinds database that MS supplies with Access. It helps immensely to see a working example. Anyway, that’s all I’ve got for now. Good luck.
Kirk -
WSBigDaddyV
AskWoody LoungerMorning. I have a issue where I’m trying to delete records that match a certain pattern.
The code I’m using is this:Code:cnnDBServer = New ADODB.Connection cnnDBServer.Provider = "Microsoft.Jet.OLEDB.4.0" cnnDBServer.Open(strDBPath & "XYZServer.mdb") strSql = "DELETE tblClientFileDetails.* FROM tblClientFileDetails WHERE (((tblClientFileDetails.FileName) Like 'XyzClient*'))" cnnDBServer.Execute(strSql) cnnDBServer.Close() cnnDBServer = Nothing
The process doesn’t delete any of the files. If I replace the strSql with:
“Delete tblClientFileDetails.* From tblClientFileDetails” It deletes all the records so i know the code works. Also If I paste the original sql into MS Access, it deletes the matching records.
I’m coding this in Visual studio 2010 and connecting to an external Access database.
Does anyone see why this doesn’t work?
Thanks,
ScottHi, Scott. This typically happens when you are querying an SQL table, but you seem to be accessing an MDB. In any case, you might want to try using % for a wildcard.
Regards,
Kirk
![]() |
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
-
Two blank icons
by
CR2
1 hour, 54 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
4 hours, 18 minutes ago -
End of 10
by
Alex5723
6 hours, 59 minutes ago -
End Of 10 : Move to Linux
by
Alex5723
7 hours, 28 minutes ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
3 hours, 57 minutes ago -
test post
by
gtd12345
13 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 hours, 7 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
3 hours, 56 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
17 hours, 21 minutes ago -
Upgrading from Win 10
by
WSjcgc50
4 hours, 45 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
12 hours, 27 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
1 day, 9 hours ago -
The story of Windows Longhorn
by
Cybertooth
20 hours, 45 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day, 10 hours ago -
Are manuals extinct?
by
Susan Bradley
7 hours, 14 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
1 day, 20 hours ago -
Network Issue
by
Casey H
1 day, 7 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
2 days, 8 hours ago -
May 2025 Office non-Security updates
by
PKCano
2 days, 8 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days, 10 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day, 11 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
2 days, 12 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
2 days, 12 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
2 days, 20 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 day, 12 hours ago -
Asking Again here (New User and Fast change only backups)
by
thymej
3 days, 7 hours ago -
How much I spent on the Mac mini
by
Will Fastie
14 hours, 48 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
1 day, 10 hours ago -
Spring cleanup — 2025
by
Deanna McElveen
3 days, 13 hours ago -
Setting up Windows 11
by
Susan Bradley
2 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.