473,386 Members | 1,795 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.

Override a text box with a certain value 'On Click'

Hi all,

I have an audit form which calculates a rating based on certain selections on the form.

The final rating is diaplayed in an unbound text box using the following code in the control source:

Expand|Select|Wrap|Line Numbers
  1. =IIf([txtScore]<51,"Below Requirement",IIf([txtScore]<100,"Feedback Required","Achieved Requirements"))
It works perfectly however, I want the user to have an option to updrade the rating (which is a discretional rating so there are no set paramaters)to 'Exceeds Requirement' upon click of a button.

Every time I try to asign a value 'on click' I get an error stating that I cannot assign a value to that object. Is there any way around this?

Seriously stuck and need to have this up and running ASAP.
Nov 6 '14 #1

✓ answered by jforbes

There are a couple of different ways you can go about this. Probably one of the easiest, without redoing much, would be to add a Checkbox under or around your Unbound field and include it's value in the Source for your Unbound field.

If you were to add a Checkbox named chkOverrideCheckbox, the following ControlSource should work:
Expand|Select|Wrap|Line Numbers
  1. =IIf([chkOverideCheckbox]<>0,"Achieved Requirements",IIf([CustomerID]<1,"Below Requirement",IIf([CustomerID]<2,"Feedback Required","Achieved Requirements")))
  2.  

2 1089
jforbes
1,107 Expert 1GB
There are a couple of different ways you can go about this. Probably one of the easiest, without redoing much, would be to add a Checkbox under or around your Unbound field and include it's value in the Source for your Unbound field.

If you were to add a Checkbox named chkOverrideCheckbox, the following ControlSource should work:
Expand|Select|Wrap|Line Numbers
  1. =IIf([chkOverideCheckbox]<>0,"Achieved Requirements",IIf([CustomerID]<1,"Below Requirement",IIf([CustomerID]<2,"Feedback Required","Achieved Requirements")))
  2.  
Nov 7 '14 #2
@jforbes
Works perfectly! Thanks.
Nov 10 '14 #3

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

Similar topics

20
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
2
by: Josh | last post by:
Is it possible to make a textarea required only if a certain value is selected from a <select>? I am trying to make a textarea named ObjOther required only if the value OT is selected from a...
4
by: L Mehl | last post by:
Using VBA, when assigning values to variables from textboxes or comboboxes. the property "Text" or "Value" does not capitalize, yet the assignment works. In addition, appending "Text" or "Value"...
3
by: gasturbtec | last post by:
i'm using access 2000 and have a form in which users can select reports with check boxes and click a print button to print out the selected reports. what i want to do now is place a text box on the...
1
by: Pavils Jurjans | last post by:
Hello, Is there some short-gand way to check if the enum type value contains certain value? Ie, the talk here is about Regex object: Regex re = new Regex(@"pattern", RegexOptions.IgnoreCase...
1
by: Martin | last post by:
Dear Group Sorry for bothering you again but I need expert advice on this. I have placed a HTML textbox on my aspx form and converted it to run as a server control. At some point in my code I...
1
tolkienarda
by: tolkienarda | last post by:
hi all i have a large database that is matained with a php script. i need to be able to delete every entry in every table with a certain value DELETE FROM (all tables) WHERE (anywhere value...
5
by: nathanwb | last post by:
I have an index.php page that does a query from a database of users, in this database there is a field called isadmin.. I am wondering if it would be possible to do some type of IF statement based on...
3
by: rameshbabu1251 | last post by:
hi i am getting trouble in displaying text field value as web page title on entering text in text field. can any one help me solving this problem here my code <html> <head> <script...
1
by: robertybob | last post by:
Hi I have implemented a right-click event on DGV cells. However if the text in the cell is being edited (ie, has a cursor or selected text) the right-click event doesn't fire and the standard...
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
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
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
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.