473,770 Members | 1,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Setting Parameter criteria ?

20 New Member
I am working in Access 2003. I am trying to set up a form created from a query with a parameter setting. The user will have to type in a specific part number in order for the form to pull up. Thats the easy part and got it working just fine. The only problem is I only have the knowledge to set up so the user has to enter the whole 8 digit part number and most of the users only know go by the last 4 digits. Is there a way I can write the query parameter setting in a Jet simple query so that the user can enter either the full 8 digit part number or just the last numbers.

Also is there way to modify how Access uses the scroll wheel on the mouse. Right now the scroll wheel will scroll through the records of a form, but would like it to be able to scroll up an down the page instead.

Thanks
Steve
Oct 2 '07 #1
4 2030
ADezii
8,834 Recognized Expert Expert
I am working in Access 2003. I am trying to set up a form created from a query with a parameter setting. The user will have to type in a specific part number in order for the form to pull up. Thats the easy part and got it working just fine. The only problem is I only have the knowledge to set up so the user has to enter the whole 8 digit part number and most of the users only know go by the last 4 digits. Is there a way I can write the query parameter setting in a Jet simple query so that the user can enter either the full 8 digit part number or just the last numbers.

Also is there way to modify how Access uses the scroll wheel on the mouse. Right now the scroll wheel will scroll through the records of a form, but would like it to be able to scroll up an down the page instead.

Thanks
Steve
I am basing my example of a ParyollNumber Field in a tblEmployee Table, make your own necessary substitutions:

'In the [PayrollNumber] Field, set the Criteria
Expand|Select|Wrap|Line Numbers
  1. Like "*" & [Enter Payroll Number];
  2.  
Oct 2 '07 #2
Steve67
20 New Member
Thats.. that worked out great. I was trying to use the same kind of script, but just had it in the wrong position. I had them enclosed in the brackets...
Oct 2 '07 #3
ADezii
8,834 Recognized Expert Expert
Thats.. that worked out great. I was trying to use the same kind of script, but just had it in the wrong position. I had them enclosed in the brackets...
Glad it worked for you.
Oct 2 '07 #4
NeoPa
32,573 Recognized Expert Moderator MVP
...
Also is there way to modify how Access uses the scroll wheel on the mouse. Right now the scroll wheel will scroll through the records of a form, but would like it to be able to scroll up an down the page instead.
...
I think that's a "No" Steve I'm afraid.
It may be possible with some event handling code but if it is it wouldn't be easy.
Oct 3 '07 #5

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

Similar topics

3
3127
by: thomas goodwin | last post by:
I have a query which asks for a parameter value to execute it. To see the results I have to: a) click on the query -- the "Enter Parameter Value" window pops up. b) enter the parameter value c) look at results in datasheet view If I want to run the query again, I must d) click to close the datasheet view e) click on the query f) enter the parameter value
3
1011
by: cassandra.flowers | last post by:
Hi, I was wondering if it is possible (Using access) to have a query parameter as a drop down box rather than a text box? e.g. typing as criteria for a query produces a box with a text box for you to enter the parameter. Can any body enlighten me on how to turn this text box into a drop down box? And whether it is possible?
1
3803
by: Cory | last post by:
When I run the subroutine testEmailContacts the msgbox says that there is only 1 record. The sql for qyEmailContactsQyCard is below. There is over 3000 records in the table "tbl:Contact". What am i doing wrong? Thanks in advance. PARAMETERS cardYesNo Bit, ParSearchCard Bit; SELECT .ContactID FROM WHERE (((.Card)=)) OR ((()=No));
4
8230
by: Lightning Tony | last post by:
This is probably a really silly question but I am exhausted and cant seem to find the answer. I have a query that I run from a command button on a form. The query has three criteria set. The first is built into the form and so is not a problem. Then the second and third criteria prompt me for parameters. This all works fine and I get the info I want broken down the way I want to see it. But sometimes I dont want to filter at all on these...
4
5729
by: Andy Davis | last post by:
I have developed a number of reports that are based on parameter queries where the user enters criteria such as a date range and a sales rep say. I want to be able to show a graphical picture in the form of a bar chart based on the data within the report. Can I do this as when I have tried to insert a chart on the report it displays an error saying that it doeds not recognise the parameter criteria. Am I right to assume that maybe a chart...
2
550
by: Matt W via AccessMonster.com | last post by:
I based my parameter query off the following posting, but can't seem to work out a little kink. I cannot bring up a report without first typing in the month and year three times. The first time for my Form , the second for the parameter form, and the third which I can't figure out where on earth that one came from. How do I clean this up so I can type in the criteria just once into the form I created? I tried putting !! in the criteria...
3
2105
by: Ross McLean | last post by:
Hi all, I've been teaching myself C# for a new project at work. I have a bit of a background in c++ and java but never been what you could call a guru. I'm having some strange things happening when I pass a class as a parameter to a Windows Form. Basically, I have a class that has several fields, two of these fields are an instance of an inner class, the rest are basic value types (bool's in this case). I have a windows form, the...
5
5306
by: dana1 | last post by:
Hello Experts! Does anyone know if there is a way to set the values of query parameters from VBA for a report's recordsource? (i.e., I want to set the values of the parameters and NOT have the user prompted for them). Based on a Microsoft page (http://support.microsoft.com/kb/287437), I tried the following approach: Private Sub Report_Open(Cancel As Integer) Dim sql As String
5
1801
n8kindt
by: n8kindt | last post by:
this is a very basic question but i might be making it more complicated than it should be. if i were to have a query with the following code SELECT Tbl1.ID, Tbl1., Tbl1. FROM Tbl1 WHERE (((Tbl1.ID)=!.)); it will automatically pull whatever is in the frmTest's id value. now, what if i decide that for a particular case i don't want the ID criteria? if frmTest is closed it will prompt me to enter in data to replace . if i changed the...
0
9425
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
10230
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10058
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...
0
9870
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
6678
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5450
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3972
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
2
3576
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2817
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.