Ok
![]() |
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 |
-
Quite a few jumbled thoughts (Access XP)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Quite a few jumbled thoughts (Access XP)
- This topic has 10 replies, 3 voices, and was last updated 20 years, 4 months ago.
AuthorTopicWSNYIntensity
AskWoody LoungerJanuary 16, 2005 at 4:11 am #414609Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody LoungerJanuary 16, 2005 at 10:19 am #922334> How to mask passwords?
Create a form with a text box to enter the password. Set the Input Mask property of the text box to PASSWORD.
>… is there a change password macro/code …
Create a form with three text boxes: ‘Old password’, ‘New password’ and ‘New password (confirm)’. Set the Input Mask property of each to PASSWORD. Put a command button ‘OK’ on the form, and in the On Click code of the button, check whether the new password meets all requirements, and if so, store it wherever you store the password.
> … an example script to put in autoexec that would say …
Don’t use AutoExec. Set the password entry form to be the startup form for the database (in Tools | Startup…)
> … is there a way to lock certain columns for editing on a query?
End users should NEVER work directly with queries, but with forms. In a form, you can set the Locked property of text boxes to Yes to prevent editing.
> … a quick lesson in user-level security …
See WendellB’s tutorial the Access Experts: Custom Database Solutions. It contains many useful links. Jack MacDonald has a good security paper. While you’re at it, also look at WendellB’s the Access Experts: Custom Database Solutions.
-
WSHansV
AskWoody LoungerJanuary 16, 2005 at 11:30 am #922341I would create an auxiliary table tblRank to define the rank grouping:
RankGroup RankLetter E E O O O W Create a query to extract the first letter of the rank:
SELECT Table1.*, Left([Rank],1) AS RankLetter
FROM Table1;Save it as – say – qryTable1. Then, create a crosstab query based on this query and on tblRank:
TRANSFORM Count(*) AS V
SELECT qryTable1.Service
FROM tblRank INNER JOIN qryTable1 ON tblRank.RankLetter=qryTable1.RankLetter
GROUP BY qryTable1.Service
PIVOT tblRank.RankGroup;See attached database.
-
WSNYIntensity
AskWoody LoungerJanuary 16, 2005 at 1:16 pm #922354Hans, once again you come to the rescue. My only problem with queries (I’ve already set the security on forms) is that the end users need to create excel documents from these queries to report to higher-ups. They can’t exactly do that on a form. That’s why I’m requesting to lock certain parts. I input the original data, rank, name, ssn, company…things like that. But I want the end users to edit personal information on these guys…like different addresses, etc. Maybe that can offer a little more clarification. I’ve got a form that shows upon opening, and shift-key bypass doesn’t work either. So I’m not worried about them changing the queries/tables/forms, etc…all they work with is forms, reports, and read-only queries and tables. Thanks!
-
WSHansV
AskWoody Lounger -
WScharlotte
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSNYIntensity
AskWoody Lounger -
WSHansV
AskWoody LoungerJanuary 16, 2005 at 10:00 pm #922416Say that your table tblData contains a field MyField that you want to lock in the query. In an empty column of the query grid, enter
MyField: [tblData].[MyField] & ""
You must add the table name, otherwise you’ll get a circular reference. As an alternative, you could give the column an alias different from the field name; you can omit the field name then:
MyLockedField: [MyField] & ""
-
WSNYIntensity
AskWoody LoungerJanuary 21, 2005 at 6:02 pm #923841Hans, thanks a lot for your help. Is there a way, without running a query, to have that action take place? Upon data entry, I want to take the first letter of the last name, and the last 4 of the ssn and put them together in another column. I have this code, but I don’t know where to put it :
=left([lastname],1)&””&right([ssn,4])
Thanks!
Jeremy -
WSHansV
AskWoody LoungerJanuary 21, 2005 at 6:26 pm #923854You can create a select query based on your table, and add a column
LetterSSN: Left([LastName],1)&Right([SSN],4)
(no need to insert an empty string in between; you had the second ] in the wrong place) Use this query as record source of your form. Alternatively, place a text box on the form with control source
=Left([LastName],1)&Right([SSN],4)
-
-
-
-
Viewing 1 reply thread -

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
-
Auto Time Zone Adjustment
by
wadeer
2 hours, 25 minutes ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
5 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
8 hours, 16 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
2 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
40 minutes ago -
Apps included with macOS
by
Will Fastie
6 minutes ago -
Xfinity home internet
by
MrJimPhelps
13 hours, 8 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 hour, 20 minutes ago -
Debian 12.11 released
by
Alex5723
23 hours, 34 minutes ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
1 day, 3 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
6 hours, 41 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
23 hours, 43 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
1 day, 20 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 day, 10 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
1 day, 22 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 day, 15 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
22 hours, 39 minutes ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
36 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
2 days, 8 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
2 days, 4 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
1 day, 18 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
2 days, 22 hours ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 6 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
18 hours, 52 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
3 days ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
3 days, 1 hour ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
2 days, 13 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
3 days, 9 hours ago -
0Patch, where to begin
by
cassel23
3 days, 3 hours ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
3 days, 22 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.