473,756 Members | 1,818 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Linking Parameter values of a query using form

2 New Member
Hello

I m using MS Acces 2007, I need to create a form through which a user can enter all the parameter values in the form and these values will automatically picked by a query:

Here is the query which i want to link with a form
Expand|Select|Wrap|Line Numbers
  1. INSERT INTO [DSF Daily Activity Query mode] ( [Code:], [Month:], [Date:], [Cont Made], [Appt Made], [Appt Atten], [No of PFRs], Cases, Premium, [Rept Mgr Code:], [Rept Type:] )
  2.  
  3. SELECT [DSF Daily Activity 1].[Code:], [DSF Daily Activity 1].[Month:], [DSF Daily Activity 1].[Date:], [DSF Daily Activity 1].[Cont Made], [DSF Daily Activity 1].[Appt Made], [DSF Daily Activity 1].[Appt Atten], [DSF Daily Activity 1].[No of PFRs], [DSF Daily Activity 1].Cases, [DSF Daily Activity 1].Premium, [DSF Daily Activity 1].[Rept Mgr Code:], [DSF Daily Activity 1].[Rept Type:]
  4.  
  5. FROM [DSF Daily Activity 1]
  6.  
  7. WHERE ((([DSF Daily Activity 1].[Date:]) Between [From Date ] And [To Date])) OR ((([DSF Daily Activity 1].[Code:])=[Enter Code]));
I want "Form Date", "To Date" and "Enter Code" parameters to be linked with a form where a user can enter the values.

My form name is "Data Entry"

Please help me to resolve this problem.
Sep 23 '08 #1
3 1910
NeoPa
32,572 Recognized Expert Moderator MVP
Referring to Items on a Sub-Form gives some clues, but in this case you simply want :
Expand|Select|Wrap|Line Numbers
  1. Forms![Data Entry]![From Name]
  2. Forms![Data Entry]![To Name]
  3. Forms![Data Entry]![Enter Code]
You may need to adjust the Control names to those you've actually defined.
Sep 23 '08 #2
bilalkhan
2 New Member
Thank You so much its really very helpful for me.
Sep 23 '08 #3
NeoPa
32,572 Recognized Expert Moderator MVP
My pleasure :)

Welcome to Bytes!
Sep 23 '08 #4

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

Similar topics

3
7550
by: MX1 | last post by:
I'm ready to pull the hair out of my head. I have a query with a couple of parameters that I want to get from combo boxes on a form. One parameter is a date with a dynamically calculated year and the other is criteria for a Yes or No field. I'll focus on the Yes/No field for simplicity. If I run the query with the criteria hard coded as either "YES" or "NO", it works. In the values of the combo box in my form, I have it set as...
2
2684
by: Betrock | last post by:
This is probably very simple, but I just can't see my way thru it..... Short version: keyed values(numeric)in a lookup table are stored in a main table. They are displayed as text values - the keyed values description. I need a parameter query to return a range of these values. The parameter input won't accept the 'text' version. You can do it with 'Find' because you can select 'as formatted'. But I need a range. Please, any...
2
4775
by: dskillingstad | last post by:
I'm trying to set up a parameter query based on an unbound form. This search form has about 5 text boxes where the user can type in values within each box and search a specific table based on the values of those 5 text boxes. One of two of these boxes are based on date. The obvious part (being the novice that I am) I'm stuck on is having the query search based on 1 to 5 search values? In other words, I need the query to search based on...
3
10338
by: Erwin Bormans | last post by:
Hello I want to make a parameter query where i can select the parameter out of a drop down box instead of typing the parameter in a text box. For example: if i have customers and want to run a query that gives me all the custormers from a chosen state, that i can choose the state in a drop down list instead of knowing it by heart and typing it myself. Does anybody has an idea or example for such a query?
1
2015
by: hmiller | last post by:
I'm sorry to populate the server with yet another question about linking multiple tables and queries, howerver I have not been able to find the right criteria. My problem. I am trying to either link 3 tables together in a select query, and maintain the editablity that I get when linking two tables and creating a form. I know there is a way to link 3 tables through multiple queries however I have yet to be able to get it to work.
4
2379
by: schmidtmic | last post by:
I have a table that contains 20 checkbox fields. Each checkbox corrisponds to an Score amount. For Example: Checkbox1 is worth 10 points Checkbox2 is worth 5 points Checkbox3 is worth 2 points Checkbox4 is worth 3 points
2
800
by: davy d | last post by:
I'm having a problem with an acess form linkin with another form. My index in the main form is Autonumber (Rec#) the 2nd form is called Record# and it is set for text. The link criteria works well with linking these 2 forms together with these conditiosn, here is the vb code: stLinkCriteria = "=" & "'" & Me! & "'" but the problem is when i try to create a query it wont work with the 2 tables since they arte mismatched. numeric to...
0
7191
by: Tarik Monem | last post by:
I have been working on an all AJAX/DOM web site which is set to go live today and I thought I'd share my discoveries with all of you whom have helped me when I have encountered different issues along the way. First, deep linking is not something that a completely AJAX web site should be able to do by it's very nature of everything being on one page basically. So how can a person deep link to something that is on one page? This question...
20
5243
by: exipnakias | last post by:
Hello Guys. In a form I created a listbox which looks up the values of a table. I want: 1) ..to create a query where a parameter will be needed in order to be loaded. But I do not want to write the parameter, I want to select a row from the listbox and after clicking in a button, the query to automatically take the current value of listbox as the needed parameter and then to load the query. (The Inputbox for "Enter Parameter" will...
0
9275
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
9872
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
9843
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
9713
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
6534
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
5142
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
5304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3805
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
3358
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.