-
WSMarkLiquorman
AskWoody LoungerI use Rick Fisher’s “Find & Replace”, found at http://www.RickWorld.com. This is an absolutely indispensable tool for Access developers.
-
WSMarkLiquorman
AskWoody LoungerRG,
How did you insert the code like that? Is it an image? -
WSMarkLiquorman
AskWoody LoungerI use a different technique for linking:
Code:Set dbData = DBEngine.Workspaces(0).OpenDatabase(strDataLocationPath) txtConnection.Visible = True For Each mytdf In mydb.TableDefs If Left(mytdf.Name, 1) "~" And Len(mytdf.Connect) > 0 And Left(mytdf.Connect, 1) = ";" Then strTableName = mytdf.Name txtConnection.Value = strTableName 'just shows progress Me.Repaint mytdf.Connect = ";Database=" & strDataLocationPath mytdf.RefreshLink End If Next txtConnection = "Linking Complete!" mydb.Close Set mydb = Nothing dbData.Close Set dbData = Nothing
This technique automatically finds all linked tables; the assumption is that all linked tables are connected to the same backend (a little extra coding if that is not the case). “strDataLocationPath” is that backend location, which may come from different places. Usually I have a linking form that contains the path to the Backend; often a choice between a network location (for production) and a local location (for testing). I believe this technique of refreshing the connection string is faster especially if you have a lot of tables.
-
WSMarkLiquorman
AskWoody LoungerFebruary 23, 2017 at 10:51 am in reply to: How to save tables in a protected database (Access 97) #1591706Definitely not a stupid question. Exactly how are you blocked? Can you open the database with the Shift key depressed? Does it require a database password? If the latter, you should be able to find a 3rd party product to crack the db password.
-
WSMarkLiquorman
AskWoody LoungerJust out of curiousity, how many providers do you have? If there are a lot of rows, Access will delay fully populating a listbox. Just a way of managing resources.
-
WSMarkLiquorman
AskWoody LoungerLuke,
What is the error you are getting? Statement looks OK to me, if you realize that it will return NULL unless ‘Leicester’ is found. You might want to put in an ELSE statement. -
WSMarkLiquorman
AskWoody LoungerAs I see it, the WHERE clause of your SQL should be:
WHERE [Email1] Is Not Null AND [Citizen/Leg] IN (“SFL”, “YAL”, “C”,”F”)This says “I want to return all records that have an email value and that have 1 of 4 acceptable values for citizen/leg”. This assumes that the Email1 field can not contain a zero-length string. If it can, then use: WHERE [Email1] & “” “” AND …
On a separate issue, you should get out of the habit of using special characters in your fieldnames, with the exception of the underscore character.
-
WSMarkLiquorman
AskWoody LoungerIf you’ve installed the SQL Server Management Studio, you can detach the database and then copy/move it.
-
WSMarkLiquorman
AskWoody LoungerAre you sure it is that routine that is asking you twice? Is it possible that in the form’s BeforeUpdate event you have another “Are you sure?”?
-
WSMarkLiquorman
AskWoody LoungerWhat was wrong with: format([Calc_Total],”currency”)
-
WSMarkLiquorman
AskWoody LoungerThe Controlsource for a single textbox would be:
=[Qty] & ” items purchased from ” & [Sold_By] & ” at a cost of ” & format([Calc_Total],”currency”)
-
WSMarkLiquorman
AskWoody LoungerStatus = Switch(Left([Stage],6)=”Closed”,”Closed”,[Client Priority]=”On Hold”,”Inactive”,[Client Priorty]=”Awaiting Client”,”Inactive”,True,”Active”)
-
WSMarkLiquorman
AskWoody LoungerI don’t understand how Client_Priority and Stage are related. For example what if Client_Priority is “Low” (which yields an “Active” Status), but State is “Closed – Withdrawn” (“Closed” Status)?
-
WSMarkLiquorman
AskWoody LoungerThe quick way is to use: DateDiff(“yyyy”,[17 Init Date], [Enter Start date in format mm/dd/yyyy])
-
WSMarkLiquorman
AskWoody LoungerThe IIF statement evaluates both “sides”; that is, even if the condition is met, the other condition is also evaluated. So in your example, if Text40 is Null, then Val(text40) will fail. You might try Val(text40 + “”).
![]() |
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
-
Windows Update says that “some settings are managed b your organization” (Awaiting moderation)
by
Ed Willers
13 minutes ago -
Use of Gmail rejected.
by
CBFPD-Chief115
4 hours, 32 minutes ago -
WuMgr operational questions
by
Tex265
5 hours, 16 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
10 hours, 20 minutes ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
7 hours, 21 minutes ago -
Backing up Google Calendar
by
CWBillow
16 hours, 47 minutes ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
1 day, 5 hours ago -
File Naming Conventions (including Folders)
by
Magic66
4 hours, 9 minutes ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
1 day, 12 hours ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
23 hours, 21 minutes ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
5 hours, 39 minutes ago -
Adding Microsoft Account.
by
DaveBRenn
1 day, 14 hours ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
2 days, 13 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
2 days, 14 hours ago -
Windows 11 won’t boot
by
goducks25
6 hours, 27 minutes ago -
Choosing virtual machine product for Windows on Mac
by
peterb
2 days, 3 hours ago -
Rest in Peace
by
Roy Lasris
3 days, 8 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
6 hours, 2 minutes ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
3 days, 9 hours ago -
Drivers for Epson Perfection V600 Photo – scanner
by
Bookman
20 minutes ago -
Long Time Member
by
jackpet
3 days, 11 hours ago -
Woody Leonhard (1951–2025)
by
Will Fastie
7 hours, 10 minutes ago -
What I learned from Woody Leonhard
by
B. Livingston
3 days, 4 hours ago -
Windows Settings today
by
Simon Bisson
3 days, 19 hours ago -
Mail Merge magic in Microsoft Word
by
Peter Deegan
17 hours, 48 minutes ago -
Businesses in the crosshairs
by
Susan Bradley
2 days, 9 hours ago -
Double-row taskbar?
by
CWBillow
1 day, 1 hour ago -
Upgrading non-supported HW to Win 11
by
RetiredGeek
1 day, 10 hours ago -
Audio locks up after 15 minutes
by
WSArthurR
1 day, 10 hours ago -
Copilot app uninstalled
by
Susan Bradley
1 day, 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.