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

Cannot remove error using Nz function

Jerry Maiapu
259 100+
Hi there,
I have a log in form that users use to log in to the ACCESS DB.
The username and password are taken from the current logged in user of the windows.

I have put the following as the default value for the
username text box which works fine.
( Takes the current logged in user and punches it into txtusername)

Expand|Select|Wrap|Line Numbers
  1. =Environ("UserName")
However, recently for some Workstations the following showed up in the username text box.
Expand|Select|Wrap|Line Numbers
  1.  #Name?
ie the default value

Expand|Select|Wrap|Line Numbers
  1. =Environ("UserName")
errors out..

How can I solve this? I have tried to put some other text to fabricate the error but its persistent.

Expand|Select|Wrap|Line Numbers
  1. =IIf(IsNull(Environ("UserName")),"Enter Username",Environ("UserName"))
  2.  
Expand|Select|Wrap|Line Numbers
  1. =Nz(Environ("UserName"),"Enter UserName")
Can someone help on this..

Thanks

Jerry
Jul 27 '10 #1
0 1005

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

Similar topics

2
by: Lian Liming | last post by:
Hi, all I want to write my own error handler function in php by using "set_error_handler()" function. I have made a test for this function but found it did not work. My test code is as following:...
4
by: Yiu | last post by:
upgent help i want to start IE explorer using C# i try many code such as below: ProcessStartInfo startInfo = new ProcessStartInfo("IEXPLORE.EXE"); Process.Start(startInfo); or Process...
3
by: Apollo440 | last post by:
How to remove unused using directive? eg) using System; using System.Windows.Forms; <- i want to remove this unused using directive namespace foo { :
0
by: John E Katich | last post by:
When attempt to use the Event Wizard I get the following error message: "Add/Remove of the function impossible, because the parent class code is read only" The Project was convert from VC 6.0....
1
by: Kishor | last post by:
Hi, I have developed an assembly, now it the the time to build the setup for assembly. I have created Setup project. I have added necessary files, created shortcuts... etc. when I started build,...
4
by: Captain Chaos | last post by:
Hello I have a class B that has inherited a class A. In Class A there is a Property/Function/Sub/Event implemented that i do not want to see if using Class B. Is it possible to remove some...
2
by: Bijesh | last post by:
Hi All, Is it possible to get notified on CD/DVD insert/remove notifications using FileSystem hooks? Is there any better way to get these notifications? Thanks in advance, Bijesh
1
by: shruds | last post by:
i have the following code in a .jsp file: <script language="JavaScript"> function TAB_LOADER() { this.functions = new Array(); this.add = function(funct) { this.functions = funct; }...
6
by: Programador | last post by:
I'm getting this error when running this program: Cannot calculate rate using the arguments provided Module Module1 Sub Main() Rate(360, -694.44444444444446, 244274.69178082192) End Sub
11
by: Frankie | last post by:
Hello: New user here...first post to group. I'm getting an SQL syntax error when I try to run the following query: $query = sprintf("SELECT itemNumber, entryDate, modifyDate, thumbnailURL,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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.