473,395 Members | 1,986 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Select query password mask

fnwtech
48
I have a database where all users need access to all tables, forms, etc. However, I am trying to make it so users can only see a subset of the data (teachers need to see data for their students). I created a select query which prompts for the teacher name and then password. Is there a way to mask the password as they type it?



Here is the query:
SELECT tblStudent.StudentStateID, tblStudent.StudentName, tblStudent.Status, tblStudent.Grade
FROM tblTeachers LEFT JOIN tblStudent ON tblTeachers.TeacherID = tblStudent.TeacherID
WHERE (((tblStudent.Status)=Yes) AND ((tblStudent.Teacher) Like "*" & [Type teacher last name] & "*") AND ((tblTeachers.password) Like [Please enter your password]))
ORDER BY tblStudent.StudentName;

thanks!
Oct 16 '07 #1
7 2407
Rabbit
12,516 Expert Mod 8TB
No, but how about using an intermediary form that opens the query? You can mask passwords on the form.
Oct 16 '07 #2
fnwtech
48
So I create a form that uses the teacher name and password, how do I pass this on to the query... by using a control that launches the query?
Oct 17 '07 #3
Rabbit
12,516 Expert Mod 8TB
Yes, and you can refer to controls on forms using Forms!FormName!ControlName
Oct 17 '07 #4
fnwtech
48
okay, I am definitely doing something wrong. My query has prompts for teacher name and password. Should I remove these prompts? If I don't, when I launch the form the prompts come up.

But when I remove the prompts, it returns all records, not just the ones for this teacher.

So let me start at the beginning... I created the form in design view using the select query. I pulled in the teacher name and password from the query field list. Is this correct?

Thanks so much for your help - this is driving me crazy!
Oct 17 '07 #5
fnwtech
48
I got it - using your query by form works better than what I was trying to do!

Thanks so much... Now I can sleep tonight!
Oct 17 '07 #6
Rabbit
12,516 Expert Mod 8TB
I got it - using your query by form works better than what I was trying to do!

Thanks so much... Now I can sleep tonight!
Not a problem, good luck.
Oct 17 '07 #7
fnwtech
48
Using the query by form worked great for masking the password, however it doesn't limit someone to just that subset of data. Is there a way I can make this subset all they have access to?

This database is used by multiple schools. I want to have them use this query to log in and then only have access to the students that this query returns. I tried query to table, however that locks all other users out. I have record locking set to "Edited Record" and Open database using record level locking - because several teachers need to assign grades to the same students - though no two teachers should ever be trying to access the exact same field for a student. Should I not have these set?
Oct 25 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Hendry Taylor | last post by:
I have a problem where if I issue a select * from against a database it returns no data, but if I select column from it returns the data. Why would the * not be working as a wildcard?
1
by: Pradeep Kumar | last post by:
Hi Everyone, Well Im trying to open a mdb which is password protected and when Im using the below code it was running perfectly for the mdb's created by me., but an mdb send by others to me is...
2
by: Francis Debrabandere | last post by:
Hi all, I'm a beginner in ms access, and I'm working on my first real application. But to finish it up I'm facing a problem. I'm not able to solve and maybe someone can help me. I have made a...
5
by: social_engin33r | last post by:
Hello, I've been asked to help someone set up a database. One of the fields in the database is a text field that holds data imported in this format: 11-A-11-11 The users prefer to see the...
2
by: Yang | last post by:
Hi Is it possible to mask console input in a c# console application? What I mean is: if I entered string "test" in the console, it'll echo "****"(or nothing) instead of the string "test". I've...
5
by: Vincent van Beveren | last post by:
Hi everyone, I have a page with a login box. Because of lack of space, instead of labels I put the descriptive text in the input fields (so username input says 'username', and password input...
3
by: julianmoors | last post by:
Hey, Currently I'm writing a VB.NET/1.1 app and I need to mask the input for the password field. Does anyone know how to do this in VB? I've seen a C# example, but wouldn't know how to convert...
0
by: Ian | last post by:
I have an Access 97 form with a text box bound to a field in a table, I have set the Input Mask to Password. When I select the box by clicking on it or dragging the mouse over it, all the...
4
by: Smokey Grindle | last post by:
I have a text box on my form which I want masked as a password field, but I can't figure out what the standard mask character is in windows XP and up... anyone know what makes those round circles...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.