Query - Omitting A Record

Mar 15, 2007

Hi,

Wondered if SKS can help. I have a query which I have used for a mailing list (in report). However, there are a couple of records I do not want to show. (I just don't need those addresses at this time) How do I go about omitting these two from the query? Is this to do with crosstab queries??

Many thanks

Helen:)

View Replies


ADVERTISEMENT

Queries :: Omitting Fields From Query Based On Value

May 13, 2013

I am making a parameter query that looks up quality data by lot number. For some of the lot numbers certain fields of data may be null. How can I omit these fields in the query if they are null?

OR automatically omit them when exporting them data to excel?

View 1 Replies View Related

Omitting Unwanted Results

Apr 26, 2005

I have an inventory checklist being done up now.
After the item info has been typed in (price, part number.. ), below i put in the transaction info (4 sold today, 2 recieved yesterday..)

I need by report to show the total number of all stocks and how much they are all worth.
The report does that, no problem.
Only thing is that instead of the end product,
Eg: Product X, 5 pieces, $10

it also prints the transactions in the report.
Eg: Product X 4 pieces, $8
Product X -1 piece ($2)
Product X 2 pieces, $4.

What should I do to make my report -not- print all this useless junk, but just the end product?
Thanks

View 3 Replies View Related

Forms :: Omitting Records From A Combo Box?

Aug 3, 2015

I have an update form where a fail is displayed. The user can, using a combo box, change that fail.They can also add new records and pick the fail from the combo box.

The form is bound to query1 and the control source for the combo box is a field from this query which effectively come from a table, table1 The row source is another query, query2, that displays all fails.This works perfectly fine.

I now have a requirement not to display fails that have become redundant in the combo box (row source) but want to display them from query1 (control source). If I filter out the redundant fails in query2 then those that are on table1 are not displayed.

I presume this is because they don't appear in query2.

View 6 Replies View Related

Reports :: Omitting Black Fields From A Report

Aug 21, 2013

I've created a report based on emergency contacts however some fields are blank as there isn't a "contact" and rather then have lots of empty fields all over the report is there anyway to omit them based on whether they are populated or not? there might be 2-3 records that have "every" field filled the rest are varied as to how many contacts they have.

View 14 Replies View Related

Modules & VBA :: Running Update Query On Record And Have Form Show Updated Record

Jan 26, 2015

i want to be able to create an On Click Event when pushing a command button that will run an Update query to update a record and after it has been updated that specific record will pop up on a Form and be displayed. i know a different way is to run the Update query and then have it displayed in a Select query but i want it to be displayed on a Form instead. is it possible?

View 4 Replies View Related

Forms :: Edit Record From Query Result As New Record To Another Table?

Aug 22, 2013

I have a form that using "Query A" as data source. The Form need add (edit) a field value before save that Query Result to another Tabel. Is it possible to do that?

The PROCESS simply like below: Tabel A --> Query A --> Form -->Edit value a field -->Save to Tabel B

if it is possible, are there some requirements that have to be fullfilled?

View 2 Replies View Related

Refer To Previous Record In Current Record Query

Sep 15, 2005

In my query, i want to automatically display the value of another field from the previous record in a field in my current record. i.e.

Name Value Previous
Record 1 1
Record 2 2 1
Record 3 7 2
Record 4 1 7

Is it possible to create some kind of simple expression to refer to data in another record?

Cheers,
Ben

View 6 Replies View Related

Query In Forms Question (printing A Single Selected Query Record From A Form?)

Oct 19, 2004

What is the best way to impliment a query in a form so that the user can view the query records, and have the option to print or save the selected record using command buttons?

I tried subforms but I could not get the command buttons to work in the subform after it went into the form, it wanted to print the entire form instead of the selected record from the subform.

So in a nutshell I have 3-4 queries that are built, and I want to have them show up on my form in a format that the user can scroll through the results and select a single record of the results and then print or save that individual record from the form, if such a thing is possible.

Thanks in advance

Todd

View 1 Replies View Related

Show All Records From One Query And The Sum Of A Field In A Related Query Record

Mar 8, 2005

I'm building a report for annual software license renewals. The report data source is a query that combines the customer information, their computer information, and the licenses purchased for that computer. I am having no trouble with the form displaying the customer info page, then a page with the computer info at the top and a list of licenses purchased for that computer underneath.

That would be great, if that's what my boss wanted. However, she wants the whole list of available licenses displayed on each page, in the event someone want to purchase additional licenses with this year's renewal.

I'm trying to figure out how I can set up a query/report grouping to do that. I've tried making a new query, relating the qryLicense!licenseID to the qryPurchase!purchLicense and setting the relationship option to show all records from qryLicense and only those related from qryPurchase. I added the qryPurchase!purchCPU field to my query, hidden it, and set the criteria to “=1” (the computer ID of one of my dummy computer records). I also have a Sum of the qryPurchase!purchQty field included in the new query that I want to display the total number of that particular license purchased (and 0 if there are no corresponding records). All fields except for the quantity field are set to Group By.

What I’m getting from this is simply a list of the licenses purchased for that computer, not the complete list of licenses available showing the quantity purchased where applicable.

Can someone see where I’m going wrong?

Slaughter
slaughter at mizzou dot edu

View 9 Replies View Related

Queries :: Differentiate A Query Based On All Group Records Or A Query Based On Only One Record

Dec 22, 2014

I have a combo named cbogroup. I have a tblGroup with several records (active, non-active, nursery, etc.). One of the records is *ALL*. Using the CboGroup the user can pick any of the records. Howeverr, if they pick the *ALL* record, I want the query to pull up animalID based on all records in the TblGroup. If another record is picked (i.e. nursery), then the query will pull up only animalIDs that are in the 'Nursery'.Can I put a (iff then) in a query in order to differentiate a query based on all group records or a query based on only one record?

View 14 Replies View Related

Using Query To Find A Record

Jun 29, 2005

The strSql string should find the record that I have already saved in my admin table and then compare it with combusername, where is my mistake.


Private Sub Command7_Click()


'Dim db As Database
Dim strSql As String
'Set db = CurrentDb()


strSql = "Select adminpass From admin"


If ((Nz(txtpassword, "") = "") Or (Nz(combusername, "") = "")) Then

MsgBox "Please Enter A Valid Access", vbOKOnly, "Error"

ElseIf (txtpassword = "admin" And combusername = strSql) Then

DoCmd.Close acForm, "Secure"
DoCmd.OpenForm "Home"


ElseIf (txtpassword = "user" And combusername = "user") Then

DoCmd.Close acForm, "Secure"
DoCmd.OpenForm "Home"

Else

MsgBox "Wrong Password, Please Try Again", vbOKOnly, "Error"
combusername = ""
txtpassword = ""
combusername.SetFocus


End If

End Sub

View 3 Replies View Related

Update A Record Without A Query?

Oct 31, 2007

Hi,

Don't know if this is possible, or if im being just plain stoopid:

Is there a vb command that will update a record without having to use a query?

My problem is this - I have an HR database which has allows us to add employees that are going to start. We then set their [Activity Status] from "Starting" to "Active". At the moment this is done manually, but what i would like to do is have this automatically change when the [Start Date] = Date().

The code i tried to use (but is obviously wrong) is:

If [Activity Status] = "starting" And [Start Date] < Date Then
Set [Activity Status] = "Active"
End Sub

Any thoughts what i might change "Set" to, to make this work?

Thanks,

Ferg.

View 6 Replies View Related

Help Restore Record In Query

May 12, 2005

The novice that I am inadverdently deleted a record in a query. (I find it strange that it does not just automatically restore it the next time I run the query.) Is there any way I can get this record back without having to recreate the entire query?

View 2 Replies View Related

Need Query To Return Same Record Twice

Feb 23, 2006

Each record in my table has six possible sale dates as a result of cancellations. My problem results when a record is sold twice during the queried time frame (SaleDate1 and SaleDate2). Currently my query uses an if statement and if they are in the same time period, it will only return SaleDate1. I would like to see the record returned twice (once for SaleDate1 and once for SaleDate2). Any suggestions?

View 10 Replies View Related

Setting The Record Set Of A Query

Aug 15, 2006

Can i edit a query to equal a SQL string just like i do for my reports? for my reports i say:


DoCmd.OpenReport "Check Filter", acViewDesign, , , acHidden
Reports![Check Filter].RecordSource = strRecordSource
DoCmd.Close acReport, "Check Filter", acSaveYes


i tried to say

DoCmd.OpenQuery "Query1", acViewDesign, acEdit
Queries![Query1].RecordSource = strRecordSource
DoCmd.Close acQuery, "Query1", acSaveYes


i get an error in the middle line...how do i do what i'm trying to do?

View 2 Replies View Related

Show Record That DO NOT Appear In Query

Nov 6, 2006

Hi all,
Hope every is good.

I've stumbled accross an issue where i have 1 table (140,000 records) and 1 query (141,000 records) making up my MERGE query.

My merge query brings back 55,500 results, this means that there are on 55,000 records that match by a unique ID.

I need to create to other querys displaying the result that are NOT in the MERGE query, 1 for each table/query used in the MERGE query

This will then show me what data we and the client have thats out standing.

cheers

Error#9

View 1 Replies View Related

Why Is My Query Pulling One Record Only?

Apr 13, 2007

Hello Everyone,

I've been trying to figure out why my query only pulls record Object ID 10011399 and not the other one, but I can't figure it out. Can anyone please help me see what's wrong?

Thanks,

Pablo

View 13 Replies View Related

How To Set Query On The Current Record

Jun 10, 2007

hi all, i create a form which have a button to append the current entry to another table but i only want to append the current entry tat is open. So how do u set the query to append one entry(the current open entry on the form) using the criteria.

i notice the query only have sum, aver, +- ...etc..

tks.

View 7 Replies View Related

Run Query On Record Creation

Aug 9, 2007

I been tasked with a project to be written in access which I am rather unfamiliar with, web design is more my area.

For part of the project I need to copy some pricing fields from a pricing table to a new record at the point that the new record is created. The new record is created when a 'new form' button is clicked.

What I would like to know is what and where I should trigger the copy query from and what function should I be using?

cheers
John

View 1 Replies View Related

Multi-record Query

Oct 1, 2007

I have a nine-table database about the people in a certain no-longer-existing East European village. So it revolves around a main table, called PersonLOG, of people who used to live there, each with a unique ID#.
There is another table that list facts about the people: PersonFACTS. This table has, among other fields, three fields for three types of sources. One is called SubmitterID; this is the code for a person who submitted a testimony page attesting to that persons' death in the Holocaust. There is also a text field that a particular "factoid" can be typed into. There may be many fact records about any individual. So there is a one-to-many rel. between the PersonLOG and PersonFACTS.
There is a 3rd table called MAIN, that lists the "vital" information about most of the individuals. It includes one yes/no field indicating whether they died in the Holocaust.
I am trying to create a query that would list only those Persons for whom there 1)is no Submitter and 2)Died in the Holocaust. This requires that all of the records in PersonFACTS pertaining to a given individual be compared, looking for the ABSENCE of a FACT record for that person that has a submitter attribution, and then comparing to "and"-ing that with the yes/no field described. I can't see a way to do that.
My apologies if this question is too complicated.
Thanks!:confused:

View 8 Replies View Related

Query To Delete A Record

Feb 15, 2008

i have a table1 in my msaccess and i linked another table in mysql to ms access, (table2).
when table1 matches the record in table2, it will delete the record in table1.

my query is
delete *
FROM Table1
where table1.artid = table2.artid;

but it always ask me the value of tbl2.artid, the value of tbl2.artid is in the database of mysql and it has already records...

how can i compare the records of table1 (msaccess) and table2 (mysql) and delete the duplicate records?
:D

thanks in advance

View 11 Replies View Related

Query Record Wizard HELP Please:D

Feb 21, 2008

I have a class assignment for which I have to get a total for prodprice/qty and Commission. This is driving me nuts. I've read ms help to death and every attempt is a failed attempt.
I added the total row, clicked expression, used both the expression builder and text book examples and help from assecc. which I understood I needed to add in the criteria =[prodprice*qty] I am so lost here... this is a have to class but not what I wanted to be doing :eek: if anyone has a clue let me know and thanks so much...
I attached a scrshot of the table as bad as it is :D

View 2 Replies View Related

Select Record From Query

Jun 10, 2005

Hi All,
I hope I can explain what I am trying to achieve..
I have a "Top 1" query (Qry_Avail_StockItem), which selects the next available record in a table.
I have a main form (Frm_MasterStock) with a command button "Add Record".
If the user clicks the "Add Record" button, I need the form to go to the record that the query has selected.

Thanks in Advance..

View 11 Replies View Related

Query To Pull First & Last Record?

Jan 4, 2007

I am having trouble. I have a log table and I am trying to pull two records at once. The records im trying to pull is the most recent record update as well as the original record.

Example:

I want to pull for Toysrus the first log intry for this company when I first put the record in. And I want to pull the most recent update that I did for this company. Is there a way to pull both records at the same time? The first and the last?

Any help would be appreciated. THANK YOU SO MUCH!!!!!

View 2 Replies View Related

Queries :: Trying To Use Query In Record Set

Jun 13, 2013

I'm trying to use a query in a recordset and I'm getting errors. The query was created in Access using a SQL table. The query and table are in my current database. I get runtime error 3061 (expected 3 parameters) at line in red.

Public Sub UpdateLotsizes()
Dim curDatabase As Object
Dim rstQryLot As Recordset
Dim rstInvLoc As Recordset
Set curDatabase = CurrentDb
Set rstQryLot = curDatabase.OpenRecordset("QryLotsize3")

[code]....

but then I get a compiler error "user defined type not defined". Do I need another add-in?

View 11 Replies View Related







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