473,387 Members | 1,535 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,387 software developers and data experts.

Userid permissions on a listbox

Wondering if it's possible to have a select number of choices to appear
in a list box based on a user's login id?

So, for example user1 logins in and sees 3 reports listed in the
listbox (Report 1, 2, and 3). On the other hand, when user 2 logins in
he only sees 2 reports (Report 5 and 6).

Is this possible at all?

Marcus

Nov 13 '05 #1
1 1591
create a table of
(UserID, ReportName)

Then filter by userID... something like
SELECT ReportName
FROM tblReports
WHERE UserID=GetNTUserID()

there's code to grab the currently logged on user's NT ID at
www.vbnet.net

Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
by: amber | last post by:
Hello. Can someone tell me what I may be doing wrong here? I'm using the code (lboxRP is a listbox): Dim newRPindex As Integer newRPindex = Me.lboxRP.FindString(RP)...
0
by: Marcus | last post by:
Wondering if it's possible to have a select number of choices to appear in a list box based on a user's login id? So, for example user1 logins in and sees 3 reports listed in the listbox (Report...
4
by: radrain | last post by:
I need to programmatically get the list of users and/or groups related to a specific registry keys permissions. I have successfully access key values from the registry but I need a way to,...
6
by: Chris Leuty | last post by:
I am populating a multiselect Listbox from a dataset, with the content of the listbox filled by one table, and the selections determined from another table. So far, I have been keeping the dataset...
0
by: Paul | last post by:
Hi, I made a minor change in a .net application, spefically clear a text box when a drop down listbox select event takes place. Since this did not effect the form layout I just copied the project...
4
by: Trint Smith | last post by:
I did have UserID as 'Dim UserID As String'. Ok, when I made it 'Public UserID As String', in the Public Area of one program and took out all the 'local' declairations of it, even in the other...
0
by: bic1ster | last post by:
I have a Windows 2003 Service Pack 2 using IIS connecting through an ODBC to DB2 v8.1 (Windows 2003 SP2). DB2 Client version v8.1.11.973 Problem: IIS is not using connection string userid...
3
by: Jim | last post by:
Using either EW or VSE2008, I want to have a GridView that will: - Insert the logged in user's UserId from either the User table or the membership table when the user inserts a record. - When the...
4
by: sjohnson1984 | last post by:
Hello all, I have a form which is generated using a database query - the recordset is filled with agent details, login time and the like, and there are as many rows in the table as records in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.