473,394 Members | 1,769 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,394 software developers and data experts.

Parameter value question

Hi

I have a subform that shows dates and comments for a person.
But when I open the main form I get this Parameter value box to insert a specific date or just press OK and the query will work anyway.
How do I get rid of the parameter value box?
I would rather have a combo box where you can choose a date to backtrack comments.

Mikael
Nov 14 '06 #1
4 1329
NeoPa
32,556 Expert Mod 16PB
Please see this thread for instructions on starting a thread which experts will find easier to answer (POSTING GUIDELINES: Please read carefully before posting to a forum ).

However, I will do what I can with the info available.
If you have a parameter value box popping up, that is because in the Record Source for your form (or subform, whichever gives the problem) you refer to an item which doesn't exist.
This could be due to a misspelling, or simply referring to an item incorrectly.
If you could post the relevant SQL, as well as info on the items it refers to, we can check it out for you.
Nov 14 '06 #2
What I got is a patient form with a subform where I can search a patient and information about the patient will display in the subform.
I will now be able to put in multiple comments on one person on different dates.
I have the table linked to ID and it all works except for the parameter value box that comes up when the form opens or when I've made a search and will display the information about the patient.
Unfortunally I can't posed a zip file with the DB here, but if anyone wants to check it out I can e-mail it.
I haven't used any code simpley because I'm not good at it.
That's why I need your help.

Thanks

Mikael
Nov 14 '06 #3
MMcCarthy
14,534 Expert Mod 8TB
What I got is a patient form with a subform where I can search a patient and information about the patient will display in the subform.
I will now be able to put in multiple comments on one person on different dates.
I have the table linked to ID and it all works except for the parameter value box that comes up when the form opens or when I've made a search and will display the information about the patient.
Unfortunally I can't posed a zip file with the DB here, but if anyone wants to check it out I can e-mail it.
I haven't used any code simpley because I'm not good at it.
That's why I need your help.

Thanks

Mikael
NeoPa is right, somewhere it's looking for this date value and can't find it.

1. You say the subform has a list of dates and comments. What is the source of the subform? Is it another table? How is it tied to the main form? Does it have the PK of the main form as a foreign key and is that present on the subform (can be hidden)?

2. If you open the main form in design view. Click on the frame of the subform and open properties. Under the data tab what is the value in for Child and Master fields. Or are you using a filter?

3. Is there any code in either forms on open or on load events. If you're not sure then go to the properties for each form and look down the list under the events tab. If any of them has [Event Procedure] in them then click on the little button with dots to the right and copy as paste the code into a post. If any of them have macro names in them then check the macros.

4. In the subform check the properties of the control for the date field. Make sure that the control source (under the data tab) is set to the correct field in the underlying table or query. To be thorough you should also check the event list here.

I know that this is a lot of questions, but the parametre box only appears for a reason and that reason could fall under any of these issues.
Nov 14 '06 #4
NeoPa
32,556 Expert Mod 16PB
It's true you can't post a file on here.
Instead, you can determine where the problem is occurring and find the dataset which is being run when this box pops up.
Although it may not be obvious, all datasets are represented in SQL somewhere.
If you can post the SQL of the dataset that's got the problem, and describe the data sources it uses (tables etc) then we can help anyway.
Nov 14 '06 #5

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

Similar topics

3
by: WGW | last post by:
Though I am a novice to MS SQL server (2000 I believe), I can do almost! everything I need. Maybe not efficiently, but usefully. However, I have a problem -- a complex query problem... I can...
1
by: Prashanth | last post by:
Hi , I want to make a stored proc call thru .NET . I use the SqlParameter objects to create input parameters and set it's value. SqlParameter myParameter = new...
3
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)...
15
by: Daniel Rudy | last post by:
Hello, Consider the following code: /* resolve_hostname this resolves the hostname into an ip address. */ static void resolve_hostname(char result, const char hostname, const char server) {
4
by: Ben Blair | last post by:
Hi. How does one assign a custom parameter attribute to the implicit "value" parameter of the set accessor method of a property? For example, I can assign a custom attribute to the return...
6
by: hecsan07 | last post by:
I am writing some code that passes two parameters to a store procedure. One of the parameters is an output parameter. I am querying the DB using the input value and returning a field from the...
1
by: | last post by:
Hi, I've defined an ObjectDataSource and a parameterized DataSet. I would like it if I could pass the parameter value that describes the query that creates the DataSet as part of a user control...
3
by: Robert | last post by:
What is the best way to pass a parameter to an ObjectDataSource. I am able to add a new parameter to the SelectParameters, but I would like to just assign a value to an existing parmeter at...
16
by: hzmonte | last post by:
Correct me if I am wrong, declaring formal parameters of functions as const, if they should not be/is not changed, has 2 benefits; 1. It tells the program that calls this function that the...
4
by: David Sanders | last post by:
Hi, I have a class with an integer template parameter, taking values 1, 2 or 3, and a function 'calc' in that class which performs calculations. Some calculations need only be performed if the...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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
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...
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
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...

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.