473,395 Members | 1,968 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.

Using usernames to edit reports

Breeves22
Good morning to you all.

I have created a database for my company to monitor all of our cases. Within this database i use reports to create standard letters for our housing advisers to send out to clients and contractor.

What i need to do now is to find an easy way to update the name at the bottom of the letters. For example if John Doe sent a letter it would automatically put his name at the bottom but if Jane Doe sent one it would be hers.

After consulting with other members of staff they suggested individual usernames that they signed in on and the letters would update to reflect the user currently signed in. I wasnt sure if this was possible but said i would look into it. However a search on the internet did not yeild any results. So i am asking you good people if there is any possible way to achieve my goal?

Do not worry if my aim is impossible as i have a backup plan of creating a drop down box will all the staff names. WHich would be much easier to create but to make the staffs lives easier i will attempt the user name idea.

Thankyou for your time
Oct 5 '10 #1
3 1015
nico5038
3,080 Expert 2GB
When you have the Windows login name registered in your person/email table you can use the Environ() function to detect who's logged in like:
Expand|Select|Wrap|Line Numbers
  1. Environ("Username")
  2.  
Nic;o)
Oct 5 '10 #2
NeoPa
32,556 Expert Mod 16PB
An alternative would be Function to Return UserName (NT Login) of Current User, but for a non-security situation Environ() would be a perfectly adequate solution.
Oct 5 '10 #3
dsatino
393 256MB
I actually have an application that derives the persons name from the NT Logon, but you need to be careful with that because for some reason (maybe just my company) there may not be an actual name attached to the logon so you may get blanks.
Oct 6 '10 #4

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

Similar topics

1
by: rk | last post by:
Hi, I'm trying to write a cgi/perl programs to post a report like the following format in which the the user has to feed the values(nos) in the boxes under % Done Qual Rel. Stab P1 p2 P3.......
0
by: Kyle Blaney | last post by:
Is there a way to control how the "Edit->Advanced->Format Selection" command formats long lines? In particular, I want the command to indent long lines differently than new scope. By default, the...
3
by: Hartmut Schroth | last post by:
Hi, I need a solution for the following problem: In the item template of a datalist control I have already a button control with the commandname set to "select" to perform some specific...
1
by: Empire City | last post by:
I have an ASP.NET form with a DataGrid and Button. I want to put a RadioButtonList in a DataGrid cell. I bind it to an ArrayList which has a ListItem in the cell. The display part works fine. I...
1
by: Brian Henry | last post by:
I have a bunch of normal crystal reports (8.5 and 9.0) report files not crystal reports.net ones, can i still compile these as resources into my applications and use them like the built in one in...
0
by: Eric W. Holzapfel | last post by:
Hello Newgroup, I am trying (to no avail so far) to use and display one of the sample crystal reports that is incorporated with Visual Studio .net 2003 (World Sales Report.rpt) - just to get...
1
by: Stephe | last post by:
The reason is that there is no default printer set, however my XP Pro OS does have a default printer. From with Access I try to set the same default printer but it is not recognized. This is a...
1
by: natwong | last post by:
Hi All, I'm hoping that someone could help me out since I'm new with Access. Background: Database was set up as a simple data entry and reporting tool for Program Initiatives. The data...
2
by: tristanlbailey | last post by:
I been scouring the Internet for an answer to my problem, and a couple of times thought I had almost found the answer, but still to no avail. I'm tying to use the Rich Edit class (riched20.dll),...
0
by: Raja yashwanth Reddy Gunda | last post by:
Hi I am having a crystal report(MyReport.rpt file) in a specified path (C:\MyReports\MyReport.rpt). I have to open this file when I click on a button on my widows application. But I don't want to...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
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...
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...

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.