473,725 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Ms access - vba for between two values

2 New Member
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 [ProcurementType Id].Value = "1" And [CategoryComplex ity].Value = "Leveraged" And [ProjectedTotalS pend].Value >= "30000" And [ProjectedTotalS pend].Value < "150000" Then
[ProcurementProc ess].Value = "3 Direct Quotes"

Any help would be greatly appreciated.
Mar 23 '22 #1
1 6037
cactusdata
214 Recognized Expert New Member
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
2164
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 created using javascript are available at the server? if not how can i do the above thing so that there values can be accessed. I dont want to postback page everytime i need to create a new element.
2
1863
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 method. Also enableViewStateMac is made false in the destination page. Still I cannot get some changed values. The scenario is such - 1. I have page 1 with a hidden variable named,"myHid" whose value is set to "Text1" 2. When a submit happens on...
3
2650
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 detail of a product. On my page I have a product name and a short description. So I declare an ObjectDataSource in my page <asp:ObjectDataSource ID="productData" runat="server" SelectMethod="GetProduct"
2
1653
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 looking to do is have a lot of different variables stored in my
0
928
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 user gets redirected get populated by the data of that employee. Eg: If XXX is clicked a form sholud be opened containig the information about XXX (from DB.) I know how to fetch the data from the DB but dont know how to access the values from the...
1
1345
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 binary search tree...what is wrong? void PrintRange(TreeNode *root, KeyType KeyMin, KeyType KeyMax){ if (!root) return; else{ if (root->entry > KeyMin) PrintRange(root->left, KeyMin, KeyMax); if (root->entry >= KeyMin && root->etry <=...
1
1294
by: pavankumar106 | last post by:
can any1 tell me how to access label values of datalist in javascript?
5
5873
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 one enter some text in text box and click the button it will show the form two and its bit easy task. But the problem is that I want to access the values of text box(Form1) to Form2 when i will click the button on form 2 but getting error the code...
2
1363
by: kuldeep kamble | last post by:
On first page I am having code: <?php session_start(); $_session=$_GET; $_session=$_GET; ?>
0
8888
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9174
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8096
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4517
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4782
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3221
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.