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

Query by User

Hello-

I have a parameter query that I need to add one more feature to - and
I'm stuck.
The parameter-query portion is pretty simple, it's based on a
"ScreeningDate" field -
"Between [Enter Start Date] And [Enter End Date]"

Works fine... but here is what else I would like to do.

The table now has three "ScreeningDate" fields. Date1, Date2, and
Date3.

I would like the user to be able to select which date field (Date1,
Date2, Date3) the parameter query will be based on.

Any ideas?

Thank you for your help.

john-

Dec 5 '05 #1
3 1144
Rog
John,

The problem is that your database is not normalized. You should not
have three screening date fields. I suppose this is a database of movie
screenings? If so, you should have --a the very least-- two tables:
one for the movies and one for the screening dates. The fields in the
screening dates table should be the movie ID and the date screened.
That way you can have several screening records for each movie record.
You then link the two tables in your query so that only one set of
"between... and" parameters is required.

Rog

Dec 5 '05 #2
Thank you for you reponse... and I understand this - but I'm still
going to make a feeble attempt at justifying myself <smile>

This field is actually for dental screenings. So.. on the first
screening date, this procedure was performed. The next time the child
was screened (the 2nd screening date) this was found , the procedure
was... and so forth for the 3rd date. I have specific treaments tired
to the screening dates.

Everything works fine. But in this instance, we have to do some general
counts.... quarterly information. So as it stands.. I have to change
the parameter query by hand - for the 2nd and 3rd dates.

I would love to dump this off to the users to run... but with this 3
date things, I have to run it for them.

Does this make sense or change the situation?

Thanks again for your response,

john

Dec 6 '05 #3
So provide three queries each query having the parameter on the appropriate
field., and present those as options to the user.

They choose the screening date they want and enter the Start and End dates,
depending on the option they choose use the appropriate query.

--
Terry Kreft

"JoMonto" <jo*****@zeus.kern.org> wrote in message
news:11*********************@g44g2000cwa.googlegro ups.com...
Hello-

I have a parameter query that I need to add one more feature to - and
I'm stuck.
The parameter-query portion is pretty simple, it's based on a
"ScreeningDate" field -
"Between [Enter Start Date] And [Enter End Date]"

Works fine... but here is what else I would like to do.

The table now has three "ScreeningDate" fields. Date1, Date2, and
Date3.

I would like the user to be able to select which date field (Date1,
Date2, Date3) the parameter query will be based on.

Any ideas?

Thank you for your help.

john-

Dec 6 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: lawrence | last post by:
A very strange bug. www.monkeyclaus.org is run by a cms I'm developing. One of types of users we allow is "justTestingTheSite", a type of user I developed to give demo's to prospective clients. The...
2
by: jaysonsch | last post by:
Hello! I am having some problems with a database query that I am trying to do. I am trying to develop a way to search a database for an entry and then edit the existing values. Upon submit, the...
2
by: tdmailbox | last post by:
I have a database with three tables tbl_listings - listings of houses on for sale tbl_intersted - table which tracks if a user is interested in the listing, it has two columns mls(the key for...
5
by: Lyn | last post by:
This one is difficult to explain, so I will cut it down to the basics. I have a major table 'tblA' which has an autonum field 'ID-A' as primary key (of no significance to users). 'tblA' contains...
1
by: linwu02 | last post by:
Hi, I was wondering if there is a way to intercept the SQL query before it gets send to DB2 query processing. The problem I am facing is that I want to add context information into the query....
0
by: phlype.johnson | last post by:
I'm struggling to find the best query from performance point of view and readability for a normalized DB design. To illustrate better my question on whether normalized designs lead to more complex...
0
by: Chuck36963 | last post by:
Hi all, I've been working on a listing problem and I can't figure out how to work it out. I have looked far and wide on the web to find answers, but I'd like other peoples input on my project in...
1
by: commodityintelligence | last post by:
Greetings, I am merging a series of different tables into one query to export decision-making information. I have some architecture issues I need to ask for help on. I have no programming...
9
by: Sinner | last post by:
Hi, I have a field name 'USER' in tableMAIN. How do I replace the user names with corresponding user names. I can do that in xl using vlookup but now I'm trying to find a way to do that in...
11
beacon
by: beacon | last post by:
Hi everybody, I created a database that links one table from an ODBC data source. I saved my password and UID to the data source so neither myself nor anyone else would have to login each time...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
1
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...
0
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.