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

Ms access - vba for between two values

2
I have just started learning vba and I have script that is working except for the between two values and was wondering if anyone can tell me where I'm going wrong. If I'm not providing the correct information please let me know and I'll do my best but am a complete novice. Everything else works it's just when I get to the between choices. I've tried several different variants from what I have found on-line but still it is not working.

The section in question is the Projected Total Spend Values between $30K and $150K

ElseIf [ProcurementTypeId].Value = "1" And [CategoryComplexity].Value = "Leveraged" And [ProjectedTotalSpend].Value >= "30000" And [ProjectedTotalSpend].Value < "150000" Then
[ProcurementProcess].Value = "3 Direct Quotes"

Any help would be greatly appreciated.
Mar 23 '22 #1
1 5946
cactusdata
214 Expert 128KB
Use numbers:

Expand|Select|Wrap|Line Numbers
  1. ElseIf [ProcurementTypeId].Value = 1 And [CategoryComplexity].Value = "Leveraged" And [ProjectedTotalSpend].Value >= 30000 And [ProjectedTotalSpend].Value < 150000 Then
  2.     [ProcurementProcess].Value = "3 Direct Quotes"
  3. End If
Mar 28 '22 #2

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

Similar topics

6
by: Vikram | last post by:
I have added some input elements on a page using javascript at client side. when i submit the page, i am unable to access the values of input elements created using request.form. Are elements...
2
by: P K | last post by:
I am using server.transfer for a website being developed in vs.net 2005 And I need to get the posted values after server.transfer. For this I set the second parameter "true" in the transfer...
3
by: avezina | last post by:
We would like to use those new cool features of Asp.Net 2.0 like the ObjectDataSource in our project. I tried few basics examples and its work well. Let's say I have a page that displays a...
2
by: Chuck C | last post by:
Is there a way to access the values from a session by using an index/count instead of the name? Something like: $_SESSION Also, can you query the name and value for this? What I am...
0
by: ashima515 | last post by:
Hi I have made a datagrid whose first col(employee code) is a hyperlink column that redirects the user to another form. I want that when a particular employee code is clicked, the form to which the...
1
momotaro
by: momotaro | last post by:
our teacher gave as this function that normaly should print all the between values of a tree given two values min and max but i dont get it right whene appliying the agorithm of this function on a...
1
by: pavankumar106 | last post by:
can any1 tell me how to access label values of datalist in javascript?
5
by: ezhar | last post by:
Hi, I have two form i my project. Form1 contains a text box with public access modifiers and a button. and Form 2 contains a label and a button. the following task i am trying to do. when some...
2
by: kuldeep kamble | last post by:
On first page I am having code: <?php session_start(); $_session=$_GET; $_session=$_GET; ?>
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
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:
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...
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...

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.