Eliminating Several Queries That Do The Same Thing?

Jan 3, 2007

I have many queries that all do the same thing. The problem is that they're connected to specific controls on a form, so I have to make a new query everytime I make a new form to perform the same task as the others. This would be eliminated if there was a way to use the criteria the same way you would in code, like Me!controlname. Is there anyway possible to make these queries more universal so that they can be used by many forms?

View Replies


ADVERTISEMENT

Queries :: Eliminating Entries For Duplicate Addresses

Apr 5, 2014

I have produced a label printing query which eliminates duplicate addresses from a mail list. It works beautifully.

However, when I try to replicate with a different field criteria the new query fails to produce any output at all.

The SQL code I am using is as follows:

SELECT a.[Member ID], a.[Address 1], a.[Member Name], a.[Address 2], a.Town, a.PostCode, a.[e-Mail List]
FROM [Mail List] AS a
GROUP BY a.[Member ID], a.[Address 1], a.[Member Name], a.[Address 2], a.Town, a.PostCode, a.[e-Mail List], CStr([a].[Member ID])+[a].[Address 1]
HAVING (((a.[e-Mail List]) Is Null) AND ((CStr([a].[Member ID])+[a].[Address 1])=(Select cStr(Min(b.[Member ID])) + b.[Address 1]
From [Mail List] as b
Where b.[Address 1] = a.[Address 1]
Group By [Address 1])));

The working version has 'HAVING' e-Mail News =False instead of e-Mail List is Null. The former searches for an empty check box and the latter for an empty field.

View 1 Replies View Related

More Than 4 Tables? Gd Thing Or Bad Thing?

Mar 9, 2008

Hi, im currently under going a Driving school project database. I have the following tables, Client, Instructor, Lesson and Lesson Type. However i feel like i want to go into more depth, e.g. make tables like recording sections of theory and practical tests, etc.

Currently my database with 4 tables is in 3rd normal form.. but say if i had 10 tables linking via relationship in query, what normal form is this? Is this gd practice or bad practice? :confused::confused:

This has been going through my head lately and im wanting to get take alot into consideration for my project. This might be absurd question to say in the forum but hope anyone can help me and explanation for me.:o

Thanks and much appreciated! :)

View 4 Replies View Related

Is There Any Thing Missing In This ERD?

Nov 13, 2007

I make that ERD :-

http://www.imagehosting.com/out.php/i1365582_erd.PNG

is there any suggest to add or remove fields or tables ?

I attached the file.

and thanks.

View 3 Replies View Related

Crazy Thing

Aug 30, 2005

I've been ask to think of some solution to this problem but i'm no way near of it. I have a txt file (ascii) with aprox. 1845000 lines.

The code is something like this:

"++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++
Date:02-12-2004Time: 11:06:24

Job Number:2542
Job Name:al
Priority:Normal

User Name:msescudeiro
Customer:
Account:1341000
Distribution:
Notes:

--------------------------------------------------------------------------------

Original Filename:C-0884_Vers_E.TIF

recycled paper
Used Area:0
Plotted Area:0

Media:paper
Used Area:4977
Plotted Area:4977

Media:film
Used Area:0
Plotted Area:0

Media:vellum
Used Area:0
Plotted Area:0

Operation Count
Mirror:0
Rotate:0
Zoom:0
Stamp:0
Fold:38

++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++

I need to have a table like this:

View 14 Replies View Related

Only A Little Thing But Its Getting On My Nerves

Mar 25, 2005

I have a very simple (it has to be) database which holds names, address’s and telephone numbers (I told you). What I want to do is this when I come to the Town field, a drop down list is displayed with a few local town names (Peterborough, Huntingdon etc) and the respective STC code (01733, 01480 etc). When I select Peterborough in the town box the STC code 01733 is placed in the STD field automatically. I have two tables, one with the address’s (including Town and STC) field and the second one with two fields Town and STC. How do I get the two tables or forms to work together. Any help would be appreciated, many thanks.

View 1 Replies View Related

The Most Weird Thing Just Happened ... Please Help... Thanks!

Feb 7, 2006

have a table call 'ClinicTimeTable' there is a column call 'ClinicDate', another column called 'DrID', different row could have same 'ClinicDate' and 'DrID', so I wanna to count how many Drs in a particular day, I have following code, but it acts so werid, it onlys work for some dates! say if I put 02/02/2006 then I can get the number of DrID by observing 'count', however, if I put 01/02/2006 like below, count is 0! but there is some records with 02/02/2006 (I open the table directly in Access), how can this happening? how can it only partly works? it will make more sense if it don't work at all.

Dataset ds = new Dataset();
query = "SELECT DISTINCT DrID FROM ClinicTimeTable WHERE ClinicDate = #01/02/2006#" ;
OleDbDataAdapter myAdapter = new OleDbDataAdapter( query, oleDbConnection1 );
myAdapter.Fill ( ds );
int count = dds.Tables[0].Rows.Count;

any helps will be so appreciated! I am going mad at this problem!



by the way, i just tested that if any day in Jan 2006 is fine, say if i search 23/02/2006 or 22/02/2006 is fine... can't imagine why...

View 3 Replies View Related

Deleting PM's - How's A Thing Like This Work?

Jul 1, 2006

Moderators - please help. Apparently there's a 70 message limit on saved Private Messages (PM's). I've long since exceeded the limit, but can't find a mechanism in this forum to delete unwanted PM's Where am I going wrong here?

Best wishes - Bob

View 2 Replies View Related

Strange Focus Thing

May 6, 2005

I have a form, with some controls, a subform and some command buttons. In the OnKeyDown Event of the subform, i put the following:

If Me.NewRecord And Keycode = 9 Then
Me.Parent.cmdAddSong.SetFocus
End If

However, as soon as i hit the tab key when i am in the new record of the continuous sub form, rather than it moves to cmdAddSong, the focus is set to the control after it (cmdDeleteSong). Similarly, if i try to set the focus, to the cmdDeleteSong, after i hit the tab key, the focus will move to a next control (cmdAddAlbums).

Any ideas why does the focus does not go to the control i specified in the Me.Parent.Control, but it goes to Me.Parent.Control + 1 ?

Thank You

View 5 Replies View Related

Forgot Simple Thing

Aug 11, 2005

gosh, I can't believe I forgot simple thing. when I'm opening a form in Access it automatically goes to new/blank form, I'm try to make it go to first record instead and can't remember how I didin't before.

Thx for help

View 2 Replies View Related

Fun Little Weird Date Thing

Feb 11, 2005

This is a lot like my last post, but not exactly...

I have a table with some really strange fields. They all have 4-8 digits, and those digits stand for the date--but not for simple mmddyy. This is much more complicated than that. Each 4 or 2-digit number set stands for something different.

|___START____|_____END____|
|___196303___|___199912___|
|___192603___|___199910___|
|___193101___|___199812___|
|___195606___|___200112___|
|___192801___|___1999_____|

is a sample of the numbers in the fields. Here is the way the website says to define them:

NOTE: The seventh and eighth columns of each document describe the initial and most recent coverage dates using the SICI standard, which defines standard month codes for seasonal and quarterly issues. (A full list of the month codes used for seasonal and quarterly issues appears below.) Dates may appear as a year (1989), a year and month (197601), or a year, month, and day (19331229). Sometimes the format for initial and most recent coverage dates may differ due to changes in publication frequency over the history of the journal. For example, coverage may start with an annual issue (1898) but finish with a monthly issue (199912) or coverage may start with a monthly issue (193002) but finish with a supplemental issue containing no corresponding month (1972).

Month Codes Used in JSTOR Delimited Lists


01=January02=February03=March04=April05=May06=June07=July08=August09=September10=October11=November12=December20=Winter (when it appears at the beginning of a year)21=Spring22=Summer23=Fall24=Winter (when it appears at the end of a year)25=Early Spring26=Late Spring27=Early Fall28=Late Fall29=Early Summer30=Late Summer31=1st quarter32=2nd quarter33=3rd quarter34=4th quarterSo, if it's a 6 digit number, that's going to be 4 for the year, and 2 for one of the codes above.

If it's an 8 digit number, it's going to be 4 for the year, 2 for the month, and 2 for the day.

If it's a 4 digit number, it's just 4 for the year.

There are 665 of these, and I'll need to update them each time I download a new version of the file. So.... can anyone help me? If I could get the numbers into separate cells (at least temporarily), I could do a find and replace and add my final results back together in one cell when it's finished. I would want something that would put the first 4 digits into a cell, then the first 2 digits of what's left into a cell, and then the last two digits of what's left into another cell. I don't mind running 3 different queries.

Thanks,
Siena

View 4 Replies View Related

Eliminating $0.00 In Field

Feb 29, 2008

I am have trouble eliminating the $0.00 balances in a query. From what I can figure out is that even though the Balance appears as $0.00 in reality it could be anywhere from $0.0012 to $0.009 or something like that.

What I am trying to do re reconcile the Balance field. If the balance reads $0.00 I want it out of the query. Then I would like to find all the balances that appear to be $0.01 to a negative $0.01.

It seem that no matter what is use as critiera I still can't what I want.

Any ideas?

View 3 Replies View Related

Weird Thing In Access 2002

Apr 14, 2008

I've been using Access 2002 since approx 2003 now. I won't upgrade as I've used 2007 and don't like the new interface.

I'm competent with it and regularly build locally used databases or databases for websites.

About 2 months ago my copy starting pissing me off. Everytime I click on any of the "create" links, it plays an alert sound. Anytime I click on an already created query/table/report etc it plays an alert sound. The only other time it happens is if I click on the button in the toolbar in windows to open a previously minimised window.

There seems to be no option to turn this off or on anywhere, so I'm completely stumped. It's not critical but it's bloody annoying. Anyone else had this and figure it out or anyone simply know how to stop it doing it?

I could obviously turn the speakers off but I like to listen to music whilst I work, and shouldn't have to either!

Thanks in advance

PS - My "Provide feedback with sounds" option is set to OFF

View 2 Replies View Related

Eliminating Duplicate On A Query

Sep 6, 2005

I have a query for clients who come to our office looking for services.
I only need to report 1 visit per client during the month, in other words if the client comes several times during the month, we only count 1.

When I run the query, it gives all the times the client came to the office, but I only need to show once.

Clients are being sorted by ClientID. What do I need to write in the Criteria field to filter clients from showing again ?

Thanks

View 5 Replies View Related

Eliminating Redundant Records

May 21, 2007

Dear All,

I have a table with several fields.

Concentrating only on few fields I'd like to sort out redundant information (unnecessary records).

(It is similar to using Ecxel: Data>Filter>Advanced filter>Unique records only)

So, I'd like to ask for your help how can I reduce my table to unique records.

thx

Csaba

View 5 Replies View Related

Eliminating Duplicates In AQuery

Jan 23, 2007

I have created a query which gives me a COUNT for a field type GROUP:
SELECT AllPairAssignmentsQ.COID, Count(AllPairAssignmentsQ.COID) AS CountOfCOID
FROM AllPairAssignmentsQ
GROUP BY AllPairAssignmentsQ.COID;

AllPairAssignmentsQ is based on a union query of 5 tables. The problem I am having is that I am getting some duplicates which I need to eliminate. Each listing contains several fields. However their are two fields in the query which can be used to determine that entries are duplicated. If the combination of MAINCOUNT and COID are identical in an entry then only one of the listings needs to be counted.

The following is an example of my problem:
MAINCOUNT COID
1201 HNVL
1202 HNVL
1203 HNVL
1203 HNVL
1203 COAC
1204 COAC

My existing query will return the following:
COID COUNT
HNVL 4
COAC 2

Since 1203 HNVL is duplicated I would like for the query to count only one entry so that the query returns the following:
COID COUNT
HNVL 3
COAC 2

Thanks for any help that can be provided in solving this problem

View 8 Replies View Related

Help With A Semi-pivot,crosstab Type Thing

Aug 24, 2006

Hey all, I've been banging my head all day trying to find a method and have nothing. Perhaps someone could guide me towards the right path... Here's a generic simplification of what I have:

ID# - Friend
1 - Fred
1 - George
2 - Fred
3 - Bill
3 - Ray
3 - Scott

Here's what I'm hoping to end up with:

ID# - Friends
1 - Fred, George
2 - Fred
3 - Bill, Ray, Scott

or even this would get me there:

ID# - Friend1 - Friend2 - Friend3
1 - Fred - George
2 - Fred
3 - Bill - Ray - Scott

I'm dealing with thousands of id#'s and thousands of possible friend's names.

Any help out there? If I need to explain myself better, just ask and i'll write some more...

thanx for any help you can offer...

Jim

P.S. I'm only a lite-weight in programming. I've been trying with a thousand different query methods so far using temporary tables and anything else I could possibly imagine...

View 3 Replies View Related

Sending Email Via Outlookobject In VB, Weired Thing

Mar 23, 2005

i wanted to be able to send an email with attachement for this i created an outlook object and i filled in all the parameters and it creates the message successfully with the attachement and everything, but when i press send instead of sending the email to the recpient it puts it in the sent items without sending it, unless i opened my outlook and looked into the sent emails box then it sends it, i dont know if i can do something in order for the email to be sent automatically because i dont know if the problem is the code or it s a sort of security thing for outlook
if anyone has an idea.......................
thanks

View 4 Replies View Related

Eliminating Spaces In Data Entered

Jun 28, 2005

I have a field in a database that needs the data entered without any spaces and I'm trying to figure out how to set either the validation rules or the masks so that the system will either automatically delete any spaces or warn the user not to enter them.

My preference would be for them to automatically be deleted.

Any ideas, suggestions?

I can figure out how to make either all numbers or all letters, but the data is both so that doesn't work.

Thanks, in advance, for your help.

Charis

View 4 Replies View Related

Eliminating Duplicates From A Query Pull

Nov 3, 2004

Hello,

I am building a query that pulls from one databases but I am running into duplicates.



Here is the skinny:



From the [tbl_databases], I am setting criteria that restricts a column containing “Visio”, more specifically, “Not Like “*Visio*”. I am also setting criteria that restricts a column containing “OLD” (it is a Yes/No field).

.

The problem is that there are duplicate rows that contain both “Visio” and “Old. So, simply suing my criteria restriction are pulling out the Visio and Visio/Old orders as well as Old and Old/Visio order.



Can I create a subquery that contain the combination of “Visio” and “Old” to restrict the subset from being extracted twice?



I think I have the logic but not sure not to set it up.



Thanks

Tuktuk

View 1 Replies View Related

Eliminating Duplicates In A Grouped Report

Aug 23, 2006

OK, first time posting so I'll try to be clear here. I work for a special education agency and have created a database to track student/therapist information. Now, I have reports showing which kids are in which schools and who their therapists are. What I can't figure out is how to print a report, grouped by school, that will display which therapists are active in that school.... any ideas?

View 1 Replies View Related

Summing Data While Eliminating Duplicates?

Jul 2, 2014

what I am trying to do with that table is get a sum of all assets, a sum of all Customers, and a sum of all Employees only counting each Comp ID once. Each company that we deal with carries multiple of our products. So as you can see I currently have it in the table where it shows the different data for each product over 2011, 2012, and 2013. Obviously for this I cannot just sum the entire column, as I would have the same company summed multiple times. The thing that is making this challenging for me is that I need it summed for each individual year (2011, 2012, 2013), with the end result being a total number of employees, assets, and customers.

I was thinking that to do this I would need a Sumif formula with several other formulas inside of it, but cannot figure out what exactly I would need to do. I know that if I took it into excel I would be able to do it, but we have over 7000 different customers, each having anywhere from 3-20 different products, and for each of the years 2011-2013... so the data is just too massive to try to convert and manipulate in excel.

The reason that I am hoping to get a count of their customers, assets, and employees is so that we could then take the info from individual customers and find out that particular customer's portion of the total assets, customers, or employees. I guess the mock table that I made doesn't keep the formatting when I add spaces, so imagine that each pair of l l is a column and match that with the columns above.

I also need another column that has the 2012 and 2013 results

l Comp ID l Year l Prod Fam l Prod Group l Prod Code l Assets l Customers l Employees l Assets for 2011 l Customers for 2011 l Employees for 2011 l
l 1101232 l 2011 l Family A l Group A l Prod A l 59000 l 33 l 28 l
l 1101232 l 2012 l Family A l Group A l Prod A l 55000 l 36 l 23 l
l 1101232 l 2013 l Family A l Group A l Prod A l 51000 l 39 l 25 l
l 1101232 l 2011 l Family A l Group C l Prod B l 59000 l 33 l 28 l
l 1101232 l 2012 l Family A l Group C l Prod B l 55000 l 36 l 23 l
l 1101232 l 2013 l Family A l Group C l Prod B l 51000 l 39 l 25 l
l 1101232 l 2011 l Family B l Group B l Prod C l 59000 l 33 l 28 l

[code]....

View 3 Replies View Related

Eliminating Dupliacted Data In Joined View

Oct 12, 2005

hi

I have a query I'm creating that is using a joined view. I'm joining two tables and whereas the first contains unique data to each field the second contans class information so for example while all users are unique many may be assigned to the same class. When i use the join it therefore dupliactes all the class information in the query.

how can i set up the query so that the class information is only output once and not duplicated along with a user every time ?

cheers

chris

View 3 Replies View Related

Reports :: Eliminating A Space In Combined Field

Sep 4, 2014

I use several fields to capture a name: LName, FName, MI and Suffix.

In a report I combine the fields.

=[LName] & " " & [Suffix] & ", " & [FName] & " " & [MI]

This works fine if there is a suffix; however, without a suffix I have an extra space.

What is the "work around" to eliminate the space.

View 4 Replies View Related

Eliminating Keypunching Errors Through Redundant Data Entry?

Oct 15, 2007

I work with an Access database with about 20 tables that requires considerable manual data entry. Although it is time consuming, the bigger problem is the keypunching errors that inevitably occur. A colleague of mine said that some databases can be set up so that two (or more) individuals can enter the same data into the database (basically creating two separate, temporary databases). At the conclusion of this double data entry, the two databases can be compared to see where they differ so that corrections can be made...the logic being that it's extremely unlikely two people entering the same data independently will make the same keypunching error in the same field.

Just wondering if Access has this capability, or if a reasonable facsimile of this approach exists.

Thanks!

View 2 Replies View Related

Forms :: Eliminating Header Line In Datasheet Subform

Aug 10, 2014

With a particular client, they want to display a subform in datasheet mode. They do not want an alternative like continuous forms. If I am displaying the subform in datasheet mode, is there any way to eliminate the header row which contains the names of the columns in the subform? I know how to remove the captions themselves but the header row is still there. I don't think it can be done but I wanted to check here with those more familiar with this.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved